Skip to content

Commit

Permalink
create a nsi installer maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
vampirefrog committed Nov 11, 2024
1 parent 11d09c1 commit f362a15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/msys2-mingw64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ jobs:
with:
msystem: MINGW64
update: true
install: git make pkg-config mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-portaudio bison flex zip
install: git make pkg-config mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-portaudio mingw64/mingw-w64-x86_64-nsis bison flex zip unzip
- name: Build with make
run: make
- name: Copy DLLs over
run: cp $MSYSTEM_PREFIX/bin/libportaudio.dll .
- name: Install NSIS EnvVar plugin
run: (cd $MSYSTEM_PREFIX/share/nsis && wget https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip && unzip EnVar_plugin.zip && cp Plugins/amd64-unicode/EnVar.dll Plugins/unicode/EnVar.dll)
- name: Create NSIS installer
run: makensis mdxtools.nsi
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions mdxtools.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Section "MainSection" SEC01
File "mdx2opm.exe"
File "mdx2mml.exe"
File "mdx2midi.exe"
File "libportaudio.dll"
SectionEnd

Section "-Add to path"
Expand Down Expand Up @@ -128,6 +129,7 @@ Section Uninstall
Delete "$INSTDIR\pdx2sf2.exe"
Delete "$INSTDIR\pdx2wav.exe"
Delete "$INSTDIR\pdxinfo.exe"
Delete "$INSTDIR\libportaudio.dll"

Delete "$SMPROGRAMS\MDX Tools\Uninstall MDX Tools.lnk"
Delete "$SMPROGRAMS\MDX Tools\Website.lnk"
Expand Down

0 comments on commit f362a15

Please sign in to comment.