Skip to content

Sign the setup and uninstaller using ISCC #92

Sign the setup and uninstaller using ISCC

Sign the setup and uninstaller using ISCC #92

Workflow file for this run

# Copyright (C) 2017-2024 Smart Code OOD 203358507
name: Windows Release
on:
push:
tags:
- 'v*'
jobs:
windows-release:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --release --features=bundled
- name: Sign executables
run: |
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\target\release\stremio-service.exe"
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\resources\bin\windows\node.exe"
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\resources\bin\windows\ffmpeg.exe"
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\resources\bin\windows\ffprobe.exe"
- name: Zip release for windows
uses: vimtor/[email protected]
with:
files: resources/bin/windows/ffmpeg.exe resources/bin/windows/ffprobe.exe resources/bin/windows/stremio-runtime.exe target/release/stremio-service.exe resources/bin/windows/server.js LICENSE.md
dest: stremio-service-windows.zip
- name: Installer
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 $qresources\certificates\smartcode-20211118-20241118.pfx$q /p ${{ secrets.WIN_CERT_PASSWORD }} /v $f' 'setup\StremioService.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 StremioServiceSetup.exe s3://stremio-artifacts/stremio-service/${{ github.ref_name }}/
- name: Generate RC descriptor
run: |
node ./generate_descriptor.js --wait-all --tag=${{ github.ref_name }}
- name: Get current date
id: date
run: echo "TODAY_DATE=$(date +'%d %b %Y')" >> $GITHUB_OUTPUT
- name: Upload dmg and zip file to release
uses: softprops/action-gh-release@v1
with:
# Use the same name as all releases!
name: Stremio Service ${{ github.ref_name }} (${{ steps.date.outputs.TODAY_DATE }})
draft: true
prerelease: false
fail_on_unmatched_files: true
files: |
stremio-service-windows.zip
StremioServiceSetup.exe