Skip to content

Commit

Permalink
Simplified setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
core1024 committed Mar 8, 2024
1 parent c6223ec commit bc11745
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 101 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target
/bin
/stremio*.exe
stremio*.exe
Binary file added bin/ffmpeg.exe
Binary file not shown.
Binary file added bin/ffprobe.exe
Binary file not shown.
20 changes: 0 additions & 20 deletions setup/create_setup.bat
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
@echo off
set mypath=%~dp0

:: Download ffmpeg and node
set missing=
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, node and ResHack are already present
)

:: Convert node to stremio-runtime
if not exist "%mypath%..\bin\stremio-runtime.exe" (
call "%mypath%generate_stremio-runtime.bat" %mypath%..\bin
) else (
echo The executable stremio-runtime.exe is already generated
)

:: Compile the main executable
if not exist "%mypath%..\target\release\stremio-shell-ng.exe" (
cargo build --release
Expand Down
78 changes: 0 additions & 78 deletions setup/generate_stremio-runtime.bat

This file was deleted.

1 change: 0 additions & 1 deletion setup/get_exe_from_zip.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ $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
Expand Down

0 comments on commit bc11745

Please sign in to comment.