Skip to content

Commit

Permalink
refactor: use custom nsis setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
PA733 committed Mar 17, 2024
1 parent eae3f21 commit 5905627
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,7 @@ jobs:
name: lip-${{ matrix.OS }}-${{ matrix.ARCH }}-${{ github.sha }}

- name: Set up NSIS
run: |
C:\msys64\usr\bin\wget.exe -q https://sourceforge.net/projects/nsis/files/NSIS%203/3.09/nsis-3.09.zip -O nsis.zip
C:\msys64\usr\bin\wget.exe -q https://sourceforge.net/projects/nsis/files/NSIS%203/3.09/nsis-3.09-strlen_8192.zip -O nsis-strlen.zip
C:\msys64\usr\bin\wget.exe -q https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip -O EnVar_plugin.zip
unzip -q -o nsis.zip
mv nsis-3.09 nsis-portable
unzip -q -o nsis-strlen.zip -d nsis-portable
unzip -q -o EnVar_plugin.zip -d nsis-portable
- name: Set up NSIS building folder
run: |
mkdir nsis
cp ./scripts/make_installer.nsi ./nsis/
cp ./lip.exe ./nsis/
cp ./COPYING ./nsis/
run: .\scripts\setup_nsis.ps1

- name: Build setup program
run: |
Expand Down
11 changes: 11 additions & 0 deletions scripts/setup_nsis.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
C:\msys64\usr\bin\wget.exe -q https://sourceforge.net/projects/nsis/files/NSIS%203/3.09/nsis-3.09.zip -O nsis.zip
C:\msys64\usr\bin\wget.exe -q https://sourceforge.net/projects/nsis/files/NSIS%203/3.09/nsis-3.09-strlen_8192.zip -O nsis-strlen.zip
C:\msys64\usr\bin\wget.exe -q https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip -O EnVar_plugin.zip
unzip -q -o nsis.zip
mv nsis-3.09 nsis-portable
unzip -q -o nsis-strlen.zip -d nsis-portable
unzip -q -o EnVar_plugin.zip -d nsis-portable
mkdir nsis
cp ./scripts/make_installer.nsi ./nsis/
cp ./lip.exe ./nsis/
cp ./COPYING ./nsis/

0 comments on commit 5905627

Please sign in to comment.