From 9839ae9bc0e68f97ca986771a8a330cf3c46072a Mon Sep 17 00:00:00 2001 From: Jens van de Wiel Date: Wed, 8 Nov 2023 12:33:17 +0100 Subject: [PATCH] added key embedded in the app --- .github/workflows/main.yml | 2 ++ main.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d88cb9..c79dc22 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,8 @@ jobs: - name: Set direct proxy run: go env -w GOPROXY=direct - run: go install github.com/wailsapp/wails/cmd/wails@latest + - name: Create api KEY file + - run: echo "${{ secrets.API_TOKEN }}" > KEY - name: Update wails.json run: node build/updateConfig.js ${{ github.ref_name }} false - uses: dAppServer/wails-build-action@v2.2 diff --git a/main.go b/main.go index 6ea724f..9c23273 100644 --- a/main.go +++ b/main.go @@ -22,6 +22,9 @@ var assets embed.FS //go:embed wails.json var WailsConfigFile []byte +//go:embed KEY +var KEY string + const ( logFilePath = "main.log" )