Installer fixes

This commit is contained in:
Vladimir Borisov 2024-04-17 11:28:23 +03:00
parent 926849540e
commit dd15b80f7b
5 changed files with 17 additions and 31 deletions

View file

@ -21,8 +21,19 @@ jobs:
run: cargo build --release
- name: Build the setup proggam
run: |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' '/Sstremiosign=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe$q sign /f $q${{ github.workspace }}\certificates\smartcode-20211118-20241118.pfx$q /p ${{ secrets.WIN_CERT_PASSWORD }} /v $f' '${{ github.workspace }}\setup\Stremio.iss'
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /DSIGN '/Sstremiosign=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe$q sign /f $q${{ github.workspace }}\certificates\smartcode-20211118-20241118.pfx$q /p ${{ secrets.WIN_CERT_PASSWORD }} /v $f' '${{ github.workspace }}\setup\Stremio.iss'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: eu-west-1
- name: Upload to Amazon S3
run: |
aws s3 cp --acl public-read StremioSetup*.exe s3://stremio-artifacts/stremio-shell-ng/${{ github.ref_name }}/
- uses: actions/upload-artifact@v3
with:
name: stremio-setup
path: Stremio*.exe
path: StremioSetup*.exe

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -38,7 +38,7 @@ DisableDirPage=yes
DisableProgramGroupPage=yes
; DisableFinishedPage=yes
ChangesAssociations=yes
OutputBaseFilename={#MyAppName} {#MyAppVersion}
OutputBaseFilename={#MyAppName}Setup-v{#MyAppVersion}
OutputDir=..
Compression=lzma
SolidCompression=yes
@ -50,8 +50,10 @@ WizardImageFile={#SourcePath}..\images\windows-installer.bmp
WizardSmallImageFile={#SourcePath}..\images\windows-installer-header.bmp
SetupIconFile={#SourcePath}..\images\stremio.ico
UninstallDisplayIcon={app}\{#MyAppExeName},0
#ifdef SIGN
SignTool=stremiosign
SignedUninstaller=yes
#endif
[Code]
function InitializeSetup: Boolean;

View file

@ -9,5 +9,4 @@ if not exist "%mypath%..\target\release\stremio-shell-ng.exe" (
)
:: Compile the installer
:: "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "%mypath%Stremio.iss"
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "/Sstremiosign=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe$q sign /f $q${{ github.workspace }}\certificates\smartcode-20211118-20241118.pfx$q /p ${{ secrets.WIN_CERT_PASSWORD }} /v $f" "%mypath%Stremio.iss"
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "%mypath%Stremio.iss"

View file

@ -1,26 +0,0 @@
# This file downloads zip files and takes any executables from them.
$files = @(
"https://github.com/vot/ffbinaries-prebuilt/releases/download/v3.3/ffmpeg-3.3.4-win-32.zip"
"https://github.com/vot/ffbinaries-prebuilt/releases/download/v3.3/ffprobe-3.3.4-win-32.zip"
"https://nodejs.org/dist/v16.17.0/node-v16.17.0-win-x86.zip"
)
New-Item -Path ".\bin" -ItemType Directory -Force
$archives = @()
$workers = foreach ($url in $files) {
$fn = ([uri]$url).Segments[-1]
$archives += $fn
$wc = New-Object System.Net.WebClient
Write-Output $wc.DownloadFileTaskAsync($url, $fn)
}
# wait until all files are downloaded
$workers.Result
foreach ($f in $archives) {
Expand-Archive -Path $f -DestinationPath ".\temp" -Force -PassThru | Where-Object { $_.Name.EndsWith(".exe") -and -not $_.Name.StartsWith(".")} | Copy-Item -Destination ".\bin\"
Remove-Item $f
}
Remove-Item ".\temp" -Recurse