From eead5ba2f201503154bfcf489458310ef40965e0 Mon Sep 17 00:00:00 2001 From: Gareth Williams Date: Fri, 4 Oct 2024 10:40:22 +0100 Subject: [PATCH] Embed webview --- .github/workflows/snapshot-signed.yml | 6 +++--- .github/workflows/snapshot.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/snapshot-signed.yml b/.github/workflows/snapshot-signed.yml index f2d003f..0044a55 100644 --- a/.github/workflows/snapshot-signed.yml +++ b/.github/workflows/snapshot-signed.yml @@ -25,7 +25,7 @@ jobs: - name: Build run: | - wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -trimpath -ldflags "-s -w -X 'main.GitCommit=${{env.GITHUB_SHA_SHORT}}' -X 'main.Version=${{env.GITHUB_REF_NAME}}'" + wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -webview2 embed -trimpath -ldflags "-s -w -X 'main.GitCommit=${{env.GITHUB_SHA_SHORT}}' -X 'main.Version=${{env.GITHUB_REF_NAME}}'" mkdir -p ./out mv ./build/bin/ftb-debug-ui.exe ./out/ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }}.exe @@ -65,7 +65,7 @@ jobs: - name: Build run: | - wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -trimpath -ldflags "-s -w -X 'main.GitCommit=$(GITHUB_SHA_SHORT)' -X 'main.Version=$(GITHUB_REF_NAME)'" + wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -webview2 embed -trimpath -ldflags "-s -w -X 'main.GitCommit=$(GITHUB_SHA_SHORT)' -X 'main.Version=$(GITHUB_REF_NAME)'" mkdir -p ./out mv ./build/bin/ftb-debug-ui ./out/ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }} @@ -96,7 +96,7 @@ jobs: - name: Build run: | - wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -trimpath -ldflags "-s -w -X 'shared.GitCommit=$(GITHUB_SHA_SHORT)' -X 'shared.Version=$(GITHUB_REF_NAME)'" + wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -webview2 embed -trimpath -ldflags "-s -w -X 'shared.GitCommit=$(GITHUB_SHA_SHORT)' -X 'shared.Version=$(GITHUB_REF_NAME)'" mkdir -p ./out cd ./build/bin; zip -r ../../out/ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }}.zip ftb-debug-ui.app diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 80cad31..5aded38 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -26,7 +26,7 @@ jobs: - name: Build run: | - wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -trimpath -ldflags "-s -w -X 'main.GitCommit=${{env.GITHUB_SHA_SHORT}}' -X 'main.Version=${{env.GITHUB_REF_NAME}}'" + wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -webview2 embed -trimpath -ldflags "-s -w -X 'main.GitCommit=${{env.GITHUB_SHA_SHORT}}' -X 'main.Version=${{env.GITHUB_REF_NAME}}'" mkdir -p ./out mv ./build/bin/ftb-debug-ui.exe ./out/ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }}.exe @@ -62,7 +62,7 @@ jobs: - name: Build run: | - wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -trimpath -ldflags "-s -w -X 'main.GitCommit=$(GITHUB_SHA_SHORT)' -X 'main.Version=$(GITHUB_REF_NAME)'" + wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -webview2 embed -trimpath -ldflags "-s -w -X 'main.GitCommit=$(GITHUB_SHA_SHORT)' -X 'main.Version=$(GITHUB_REF_NAME)'" mkdir -p ./out mv ./build/bin/ftb-debug-ui ./out/ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }} @@ -93,7 +93,7 @@ jobs: - name: Build run: | - wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -trimpath -ldflags "-s -w -X 'shared.GitCommit=$(GITHUB_SHA_SHORT)' -X 'shared.Version=$(GITHUB_REF_NAME)'" + wails build -clean -platform ${{ matrix.goos }}/${{ matrix.goarch }} -webview2 embed -trimpath -ldflags "-s -w -X 'shared.GitCommit=$(GITHUB_SHA_SHORT)' -X 'shared.Version=$(GITHUB_REF_NAME)'" mkdir -p ./out cd ./build/bin; zip -r ../../out/ftb-debug-${{ matrix.goos }}-${{ matrix.goarch }}.zip ftb-debug-ui.app