mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-04-21 16:01:56 +00:00
Installer fixes
This commit is contained in:
parent
926849540e
commit
dd15b80f7b
5 changed files with 17 additions and 31 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -21,8 +21,19 @@ jobs:
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
- name: Build the setup proggam
|
- name: Build the setup proggam
|
||||||
run: |
|
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
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: stremio-setup
|
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 |
|
|
@ -38,7 +38,7 @@ DisableDirPage=yes
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=yes
|
||||||
; DisableFinishedPage=yes
|
; DisableFinishedPage=yes
|
||||||
ChangesAssociations=yes
|
ChangesAssociations=yes
|
||||||
OutputBaseFilename={#MyAppName} {#MyAppVersion}
|
OutputBaseFilename={#MyAppName}Setup-v{#MyAppVersion}
|
||||||
OutputDir=..
|
OutputDir=..
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
|
|
@ -50,8 +50,10 @@ WizardImageFile={#SourcePath}..\images\windows-installer.bmp
|
||||||
WizardSmallImageFile={#SourcePath}..\images\windows-installer-header.bmp
|
WizardSmallImageFile={#SourcePath}..\images\windows-installer-header.bmp
|
||||||
SetupIconFile={#SourcePath}..\images\stremio.ico
|
SetupIconFile={#SourcePath}..\images\stremio.ico
|
||||||
UninstallDisplayIcon={app}\{#MyAppExeName},0
|
UninstallDisplayIcon={app}\{#MyAppExeName},0
|
||||||
|
#ifdef SIGN
|
||||||
SignTool=stremiosign
|
SignTool=stremiosign
|
||||||
SignedUninstaller=yes
|
SignedUninstaller=yes
|
||||||
|
#endif
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
function InitializeSetup: Boolean;
|
function InitializeSetup: Boolean;
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,4 @@ if not exist "%mypath%..\target\release\stremio-shell-ng.exe" (
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Compile the installer
|
:: Compile the installer
|
||||||
:: "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "%mypath%Stremio.iss"
|
"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"
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Reference in a new issue