From e27ea6c906f26cc160f0cdfce7109611ddb0ad99 Mon Sep 17 00:00:00 2001 From: olup Date: Fri, 29 Jul 2022 21:43:04 +0200 Subject: [PATCH] feat: update release artifact names --- .github/workflows/build-next.yaml | 16 +++++++--------- .github/workflows/build-version.yaml | 16 +++++++--------- go.sum | 2 ++ 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-next.yaml b/.github/workflows/build-next.yaml index 2a09fe9..aa084fe 100644 --- a/.github/workflows/build-next.yaml +++ b/.github/workflows/build-next.yaml @@ -40,13 +40,13 @@ jobs: run: | Set-Item -Path Env:CGO_LDFLAGS -Value "-LD:/a/lunii-admin/lunii-admin/bindings/windows/lib" Set-Item -Path Env:CGO_CFLAGS -Value "-ID:/a/lunii-admin/lunii-admin/bindings/windows/include" - wails build -debug -o lunii-admin-windows.exe -ldflags "-v '-extldflags=-static -lm'" + wails build -debug -o lunii-admin_windows_amd64.exe -ldflags "-v '-extldflags=-static -lm'" - uses: ncipollo/release-action@v1 with: allowUpdates: true replacesArtifacts: true - artifacts: "build/bin/lunii-admin-windows.exe" + artifacts: "build/bin/lunii-admin_windows_amd64.exe" token: ${{ secrets.GITHUB_TOKEN }} prerelease: true tag: next @@ -86,13 +86,13 @@ jobs: run: go install github.com/wailsapp/wails/v2/cmd/wails@latest - name: Build - run: wails build -debug -o lunii-admin-linux + run: wails build -debug -o lunii-admin_linux_amd64 - uses: ncipollo/release-action@v1 with: allowUpdates: true replacesArtifacts: true - artifacts: "build/bin/lunii-admin-linux" + artifacts: "build/bin/lunii-admin_linux_amd64" token: ${{ secrets.GITHUB_TOKEN }} prerelease: true tag: next @@ -133,16 +133,14 @@ jobs: - name: Build run: wails build -debug - - name: Create DMG - run: | - brew install create-dmg - create-dmg lunii-admin-macos.dmg build/bin/lunii-admin.app + - name: Create Zip + run: ditto -c -k --sequesterRsrc --keepParent build/bin/lunii-admin.app lunii-admin_darwin_amd64.zip - uses: ncipollo/release-action@v1 with: allowUpdates: true replacesArtifacts: true - artifacts: "lunii-admin-macos.dmg" + artifacts: "lunii-admin_darwin_amd64.zip" token: ${{ secrets.GITHUB_TOKEN }} prerelease: true tag: next diff --git a/.github/workflows/build-version.yaml b/.github/workflows/build-version.yaml index c3bda2f..f6c538a 100644 --- a/.github/workflows/build-version.yaml +++ b/.github/workflows/build-version.yaml @@ -40,13 +40,13 @@ jobs: run: | Set-Item -Path Env:CGO_LDFLAGS -Value "-LD:/a/lunii-admin/lunii-admin/bindings/windows/lib" Set-Item -Path Env:CGO_CFLAGS -Value "-ID:/a/lunii-admin/lunii-admin/bindings/windows/include" - wails build -o lunii-admin-windows.exe -ldflags "-v '-extldflags=-static -lm'" + wails build -o lunii-admin_windows_amd64.exe -ldflags "-v '-extldflags=-static -lm'" - uses: ncipollo/release-action@v1 with: allowUpdates: true replacesArtifacts: true - artifacts: "build/bin/lunii-admin-windows.exe" + artifacts: "build/bin/lunii-admin_windows_amd64.exe" token: ${{ secrets.GITHUB_TOKEN }} build-linux: @@ -84,13 +84,13 @@ jobs: run: go install github.com/wailsapp/wails/v2/cmd/wails@latest - name: Build - run: wails build -o lunii-admin-linux + run: wails build -o lunii-admin_linux_amd64 - uses: ncipollo/release-action@v1 with: allowUpdates: true replacesArtifacts: true - artifacts: "build/bin/lunii-admin-linux" + artifacts: "build/bin/lunii-admin_linux_amd64" token: ${{ secrets.GITHUB_TOKEN }} build-macos-amd: @@ -129,14 +129,12 @@ jobs: - name: Build run: wails build - - name: Create DMG - run: | - brew install create-dmg - create-dmg lunii-admin-macos.dmg build/bin/lunii-admin.app + - name: Create Zip + run: ditto -c -k --sequesterRsrc --keepParent build/bin/lunii-admin.app lunii-admin_darwin_amd64.zip - uses: ncipollo/release-action@v1 with: allowUpdates: true replacesArtifacts: true - artifacts: "lunii-admin-macos.dmg" + artifacts: "lunii-admin_darwin_amd64.zip" token: ${{ secrets.GITHUB_TOKEN }} diff --git a/go.sum b/go.sum index 62b9940..da388ef 100644 --- a/go.sum +++ b/go.sum @@ -170,6 +170,8 @@ github.com/nwaples/rardecode/v2 v2.0.0-beta.2/go.mod h1:yntwv/HfMc/Hbvtq9I19D1n5 github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/olup/lunii-cli v0.0.0-20220727052208-9ff36a20c348 h1:srwA+Cs1YBZdbwlK6YGQDLrqZEcpYfgDErNCUV4/pNM= +github.com/olup/lunii-cli v0.0.0-20220727052208-9ff36a20c348/go.mod h1:oSGXGkGLrEr8iSTZzIakQ4pHyKhEbltFUhKh0s60csA= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=