From 7ead49c394e3441dd2da285b9df0cc0b9373ff4e Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Wed, 2 Oct 2024 04:16:32 -0700 Subject: [PATCH] ci: fix bundle on linux and macos Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> --- .github/workflows/build.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 222c4fc..e26f0fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,6 +105,7 @@ jobs: run: | ls . ls ./cmd/dungeondraft-packager + - name: Prep artifacts (windows) if: ${{ runner.os == 'windows' }} shell: msys2 {0} @@ -114,14 +115,31 @@ jobs: cp "./dungeondraft-packager-cli.exe" ./install cp *.md ./install cp /ucrt64/bin/libwebp-*.dll ./install - cp /ucrt64/bin/libsharpyuv--*.dll ./install - - name: Prep artifacts - if: ${{ runner.os != 'windows' }} + cp /ucrt64/bin/libsharpyuv-*.dll ./install + ls -r ./install + ldd "./install/Dungeondraft GoPackager.exe" + + - name: Prep artifacts (linux) + if: ${{ runner.os == 'Linux' }} + run: | + mkdir install + tar -xJf "./Dungeondraft GoPackager.tar.xz" -C ./install + cp ./dungeondraft-packager* ./install/usr/local/bin + sed -i "/install:/install:\n\tinstall -Dm00644 usr/local/bin/$$(Exec)-cli $$(DESTDIR)$$(PREFIX)/bin/$$(Exec)-cli" ./install/Makefile + cp *.md ./install + ls -r ./install + ldd ./install/usr/local/bin/dungeondraft-packager + + - name: Prep artifacts (maOS) + if: ${{ runner.os == 'macOS' }} run: | mkdir install - cp "./Dungeondraft GoPackager"* ./install + cp -r "./Dungeondraft GoPackager.app" ./install cp ./dungeondraft-packager* ./install cp *.md ./install + ls ./install + ls -r "./install/Dungeondraft GoPackager.app" + ldd "./install/Dungeondraft GoPackager.app/Contents/MacOS/dungeondraft-packager" - name: Upload artifacts uses: actions/upload-artifact@v4