Skip to content

Commit

Permalink
Upgrade build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Jun 25, 2024
1 parent 27ccaef commit 4fb3118
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ installer.iss
Output/
*.old
vcredist.exe
UniGetUIBin/
UniGetUI_bin/
UniGetUIBin.zip
unigetui_bin/
APIKEY.txt
*.pyc
WebBasedData/screenshot_database.xlsx
Expand Down
8 changes: 4 additions & 4 deletions WingetUI.iss
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ Name: "portableinstall"; Description: "{cm:PortInst}"; GroupDescription: "{cm:In
Name: "regularinstall"; Description: "{cm:RegInst}"; GroupDescription: "{cm:InstallType}"; Flags: exclusive
Name: "regularinstall\startmenuicon"; Description: "{cm:RegStartMmenuIcon}"; GroupDescription: "{cm:ShCuts}";
Name: "regularinstall\desktopicon"; Description: "{cm:RegDesktopIcon}"; GroupDescription: "{cm:ShCuts}";
Name: "chocoinstall"; Description: "Install Chocolatey"; GroupDescription: " ";
Name: "regularinstall\chocoinstall"; Description: "Install Chocolatey"; GroupDescription: "{cm:ShCuts}";

[Registry]
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "WingetUI"; ValueData: """{app}\WingetUI.exe"" --daemon"; Flags: uninsdeletevalue; Tasks: regularinstall

[Files]
Source: "src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; BeforeInstall: TripleKill('WingetUI.exe', 'winget.exe', 'choco.exe');
Source: "src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish\*"; DestDir: "{app}"; Flags: createallsubdirs ignoreversion recursesubdirs;
Source: "src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish\choco-cli\*"; DestDir: "{userpf}\..\UniGetUI\Chocolatey"; Flags: createallsubdirs ignoreversion recursesubdirs uninsneveruninstall; Tasks: regularinstall, chocoinstall; Check: not CmdLineParamExists('/NoChocolatey');
Source: "unigetui_bin\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; BeforeInstall: TripleKill('WingetUI.exe', 'winget.exe', 'choco.exe');
Source: "unigetui_bin\*"; DestDir: "{app}"; Flags: createallsubdirs ignoreversion recursesubdirs;
Source: "src\UniGetUI.PackageEngine.Managers.Chocolatey\choco-cli*"; DestDir: "{userpf}\..\UniGetUI\Chocolatey"; Flags: createallsubdirs ignoreversion recursesubdirs uninsneveruninstall; Tasks: regularinstall\chocoinstall; Check: not CmdLineParamExists('/NoChocolatey');
Source: "InstallerExtras\EnsureWinGet.ps1"; DestDir: "{tmp}"; Flags: deleteafterinstall


Expand Down
11 changes: 9 additions & 2 deletions build_release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rem clean old builds
taskkill /im wingetui.exe /f

rem Run tests
dotnet test src/UniGetUI.sln
dotnet test src/UniGetUI.sln -v q --nologo

rem check exit code of the last command
if %errorlevel% neq 0 (
Expand All @@ -27,7 +27,14 @@ dotnet clean src/UniGetUI.sln
dotnet publish src/UniGetUI/UniGetUI.csproj /noLogo /property:Configuration=Release /property:Platform=x64

rem sign code
pushd src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish

rmdir /Q /S unigetui_bin

mkdir unigetui_bin
robocopy src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish unigetui_bin *.* /MOVE /E
rem pushd src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish
pushd unigetui_bin
"Y:\- Signing\signtool-x64\signtool.exe" sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "Y:\- Signing\azure.codesigning.client\x64\Azure.CodeSigning.Dlib.dll" /dmdf "Y:\- Signing\metadata.json" C:\SomePrograms\WingetUI-Store\unigetui_bin\WingetUI.exe C:\SomePrograms\WingetUI-Store\unigetui_bin\WingetUI.dll
echo .
echo .
echo You may want to sign now the following executables
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ To translate WingetUI to other languages or to update an old translation, please
| <img src='https://flagcdn.com/cn.svg' width=20> &nbsp; Simplified Chinese (China) | 100% | Aaron Liu, adfnekc, [arthurfsy2](https://github.com/arthurfsy2), [bai0012](https://github.com/bai0012), BUGP Association, ciaran, CnYeSheng, Cololi, [FloatStream](https://github.com/FloatStream), [SpaceTimee](https://github.com/SpaceTimee), Yisme |
| <img src='https://flagcdn.com/tw.svg' width=20> &nbsp; Traditional Chinese (Taiwan) | 99% | Aaron Liu, CnYeSheng, Cololi, [Henryliu880922](https://github.com/Henryliu880922), [yrctw](https://github.com/yrctw) |

Last updated: Tue Jun 25 23:00:37 2024
Last updated: Tue Jun 25 23:15:45 2024
<!-- END Autogenerated translations -->


Expand Down
2 changes: 1 addition & 1 deletion src/UniGetUI.Core.Data/Assets/Data/Contributors.list
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ppvnf
panther7
RavenMacDaddy
Mikey1993
flatron4eg
skanda890
flatron4eg
Malus-risus
raghavdhingra24
adripo
Expand Down

0 comments on commit 4fb3118

Please sign in to comment.