From f362a15210f7ac7b29dddf3227c3f99d314d4b0a Mon Sep 17 00:00:00 2001 From: vampirefrog Date: Mon, 11 Nov 2024 22:05:05 +0200 Subject: [PATCH] create a nsi installer maybe --- .github/workflows/msys2-mingw64.yml | 8 +++++++- mdxtools.nsi | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/msys2-mingw64.yml b/.github/workflows/msys2-mingw64.yml index 946c79f..6eaef50 100644 --- a/.github/workflows/msys2-mingw64.yml +++ b/.github/workflows/msys2-mingw64.yml @@ -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: diff --git a/mdxtools.nsi b/mdxtools.nsi index 010ebaa..dbc6cfe 100644 --- a/mdxtools.nsi +++ b/mdxtools.nsi @@ -71,6 +71,7 @@ Section "MainSection" SEC01 File "mdx2opm.exe" File "mdx2mml.exe" File "mdx2midi.exe" + File "libportaudio.dll" SectionEnd Section "-Add to path" @@ -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"