Skip to content

Commit

Permalink
Fix missing runtime dll WinRT
Browse files Browse the repository at this point in the history
Fixes #545
  • Loading branch information
Belphemur committed Jan 30, 2021
1 parent 929e27e commit 0374df0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 34 deletions.
23 changes: 1 addition & 22 deletions Installer/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -76,28 +76,7 @@ Name: deletefiles; Description: "{cm:ExistingSettings}"; Flags: unchecked checke

[Files]
Source: "{#ExeDir}SoundSwitch.exe"; DestDir: "{app}"; Flags: signonce
Source: "{#ExeDir}*.dll"; DestDir: "{app}";
Source: "{#ExeDir}*.pdb"; DestDir: "{app}";
Source: "{#ExeDir}*.json"; DestDir: "{app}";
Source: "{#ExeDir}*.config"; DestDir: "{app}";

Source: "{#ExeDir}fr\*.dll"; DestDir: "{app}\fr";
Source: "{#ExeDir}de\*.dll"; DestDir: "{app}\de";
Source: "{#ExeDir}es\*.dll"; DestDir: "{app}\es";
Source: "{#ExeDir}nb\*.dll"; DestDir: "{app}\nb";
Source: "{#ExeDir}pt-BR\*.dll"; DestDir: "{app}\pt-BR";
Source: "{#ExeDir}it-IT\*.dll"; DestDir: "{app}\it-IT";
Source: "{#ExeDir}zh-Hans\*.dll"; DestDir: "{app}\zh-Hans";
Source: "{#ExeDir}zh-Hant\*.dll"; DestDir: "{app}\zh-Hant";
Source: "{#ExeDir}pl-PL\*.dll"; DestDir: "{app}\pl-PL";
Source: "{#ExeDir}ru-RU\*.dll"; DestDir: "{app}\ru-RU";
Source: "{#ExeDir}ko\*.dll"; DestDir: "{app}\ko";
Source: "{#ExeDir}nl\*.dll"; DestDir: "{app}\nl";
Source: "{#ExeDir}hr\*.dll"; DestDir: "{app}\hr";

Source: "{#ExeDir}Changelog.html"; DestDir: "{app}"
Source: "{#ExeDir}Readme.html"; DestDir: "{app}"; DestName: "Readme.html"; Languages: en fr es it pt_br pl_pl ru_ru nl zh
Source: "{#ExeDir}Readme.de.html"; DestDir: "{app}"; DestName: "Readme.html"; Languages: de
Source: "{#ExeDir}*"; DestDir: "{app}"; Flags: recursesubdirs;

[Registry]
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\{#MyAppSetupName}"; Flags: uninsdeletekey
Expand Down
13 changes: 2 additions & 11 deletions Make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ if "%~1" neq "" (
set FILE_DIR=%~dp0
set FRAMEWORK=net5.0-windows
set BIN_DIR=%FILE_DIR%SoundSwitch\bin\%buildPlatform%\%FRAMEWORK%\publish
set LANGS=(fr de es nb pt-BR it-IT zh pl-PL ru-RU ko nl hr zh-Hans zh-Hant)

set finalDir=%FILE_DIR%Final

Expand Down Expand Up @@ -73,16 +72,8 @@ xcopy /y img\soundSwitched.png %finalDir% >nul 2>nul
echo Copy LICENSE
xcopy /y LICENSE.txt %finalDir% >nul 2>nul

echo Copy Binaries
xcopy /y %BIN_DIR%\*.pdb %finalDir% >nul 2>nul
xcopy /y %BIN_DIR%\*.dll %finalDir% >nul 2>nul
xcopy /y %BIN_DIR%\*.json %finalDir% >nul 2>nul
xcopy /y %BIN_DIR%\*.config %finalDir% >nul 2>nul
xcopy /y %BIN_DIR%\SoundSwitch.exe %finalDir% >nul 2>nul
xcopy /y %BIN_DIR%\SoundSwitch.exe.config %finalDir% >nul 2>nul
for %%l in %LANGS% DO (
mkdir %finalDir%\%%l\
xcopy /y %BIN_DIR%\%%l\SoundSwitch.resources.dll %finalDir%\%%l\ >nul 2>nul
echo Copy Published
xcopy /y %BIN_DIR% %finalDir% /E/H/C/I >nul 2>nul
)

rem echo Update Icon
Expand Down
2 changes: 1 addition & 1 deletion SoundSwitch/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("5.7.1.*")]
[assembly: AssemblyVersion("5.7.2.*")]

0 comments on commit 0374df0

Please sign in to comment.