mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-03-11 17:15:49 +00:00
Installer build scripts
This commit is contained in:
parent
3225e3cec9
commit
1c899d8ad1
4 changed files with 36 additions and 6 deletions
26
.github/workflows/build.yml
vendored
Normal file
26
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Build Installer
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
# The Windows runners have autocrlf enabled by default
|
||||
# which causes failures for some of rustfmt's line-ending sensitive tests
|
||||
- name: disable git eol translation
|
||||
run: git config --global core.autocrlf false
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Stable with rustfmt and clippy
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
components: rustfmt, clippy
|
||||
- name: Build
|
||||
run: cargo test
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: stremio-setup
|
||||
path: Stremio*.exe
|
||||
|
|
@ -3,14 +3,15 @@ set mypath=%~dp0
|
|||
|
||||
:: Download ffmpeg and node
|
||||
set missing=
|
||||
if not exist "%mypath%..\bin" missing=1
|
||||
if not exist "%mypath%..\bin\node.exe" missing=1
|
||||
if not exist "%mypath%..\bin\ffmpeg.exe" missing=1
|
||||
if not exist "%mypath%..\bin\ffprobe.exe" missing=1
|
||||
if not exist "%mypath%..\bin" set missing=1
|
||||
if not exist "%mypath%..\bin\node.exe" set missing=1
|
||||
if not exist "%mypath%..\bin\ResourceHacker.exe" set missing=1
|
||||
if not exist "%mypath%..\bin\ffmpeg.exe" set missing=1
|
||||
if not exist "%mypath%..\bin\ffprobe.exe" set missing=1
|
||||
if defined missing (
|
||||
powershell -nologo -executionpolicy bypass -File "%mypath%get_exe_from_zip.ps1"
|
||||
) else (
|
||||
echo Binaries for ffmpeg, ffprobe and node are already present
|
||||
echo Binaries for ffmpeg, ffprobe, node and ResHack are already present
|
||||
)
|
||||
|
||||
:: Convert node to stremio-runtime
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
set "rt_path=%~dpf1"
|
||||
set rt_exe="%rt_path%\stremio-runtime.exe"
|
||||
|
||||
set rh="C:\RH\ResourceHacker.exe"
|
||||
::set rh="C:\RH\ResourceHacker.exe"
|
||||
|
||||
pushd %~dp0
|
||||
pushd ..\bin
|
||||
set node="%cd%\node.exe"
|
||||
set rh="%cd%\ResourceHacker.exe"
|
||||
|
||||
popd
|
||||
pushd ..\images
|
||||
set rt_icon="%cd%\stremio_gray.ico"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ $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"
|
||||
"http://www.angusj.com/resourcehacker/resource_hacker.zip"
|
||||
)
|
||||
|
||||
New-Item -Path ".\bin" -ItemType Directory -Force
|
||||
|
|
|
|||
Loading…
Reference in a new issue