summaryrefslogtreecommitdiff
path: root/tools/build_scripts
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-07 21:17:09 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-07 21:17:13 +0300
commitffe6049e1e229f17e18dc3b42fe80e980acc9e92 (patch)
tree5969f53e86c8653a51fb34e139820caee1af5acc /tools/build_scripts
parentdef49cc2863ff90da53100ea8fc852cc4388fd72 (diff)
patch to pack Opus codec with Discord correctly
Diffstat (limited to 'tools/build_scripts')
-rw-r--r--tools/build_scripts/z2_PackPluginUpdater.bat8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/build_scripts/z2_PackPluginUpdater.bat b/tools/build_scripts/z2_PackPluginUpdater.bat
index 521ce037d7..19f1dbb527 100644
--- a/tools/build_scripts/z2_PackPluginUpdater.bat
+++ b/tools/build_scripts/z2_PackPluginUpdater.bat
@@ -47,7 +47,6 @@ for /f %%a in ('dir plugins\*.dll /B /L') do (
if /I "%%a"=="CmdLine.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "MimCmd.exe")
if /I "%%a"=="CurrencyRates.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_CurrencyRates.dll" "Plugins\CurrencyRates\*.xml" "Plugins\CurrencyRates\CurrencyRatesChart.exe")
if /I "%%a"=="Dbx_mdbx.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "mdbx_chk.exe" "mdbx_dump.exe" "mdbx_load.exe" "Libs\libmdbx.mir")
- if /I "%%a"=="Discord.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_Discord.dll" "Libs\libsodium.mir" "../../redist/x%tp%/gstreamer/opus-0.dll")
if /I "%%a"=="Dummy.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_Dummy.dll")
if /I "%%a"=="Facebook.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_Facebook.dll")
if /I "%%a"=="FavContacts.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Gadgets\favcontacts.gadget")
@@ -83,6 +82,13 @@ for /f %%a in ('dir plugins\*.dll /B /L') do (
if /I "%%a"=="Weather.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_Weather.dll" "Plugins\Weather\*.ini")
if /I "%%a"=="WhatsApp.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Libs\libsignal.mir" "libs\libqrencode.mir")
if /I "%%a"=="YAMN.dll" (%ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_YAMN.dll")
+
+ if /I "%%a"=="Discord.dll" (
+ xcopy /S /V /Y "../../redist/x%tp%/gstreamer/opus-0.dll" "Libs"
+ %ZipIt% "%Arch%\Plugins\%%~na.zip" "Icons\Proto_Discord.dll" "Libs\libsodium.mir" "Libs\opus-0.dll"
+ del "Libs/opus-0.dll"
+ )
+
if /I "%%a"=="Jingle.dll" (
ren Libs Libs2
mkdir Libs