feat: updated to wails v2.8.2 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven deploy | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.22.0' | |
- run: go version | |
- name: Get Wails | |
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest | |
- name: Install Wails Build Dependencies | |
run: sudo apt-get install -y build-essential libgtk-3-dev libwebkit2gtk-4.0-dev npm pkg-config | |
- name: Wails Doctor | |
run: wails doctor | |
- name: Fetch current Version based on Frontend | |
run: | | |
echo "version=$(grep -oP '(?<=version: ")[^"]*' frontend/src/staticContent/index.js)" >> $GITHUB_ENV | |
- name: Update version for Output File | |
run: | | |
sed -i "s/dev/${{ env.version }}/g" wails.json | |
- name: Install Wails Build (Windows) | |
run: wails build -platform windows/amd64 | |
- name: Install Wails Build (Linux) | |
run: wails build -platform linux/amd64 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: app-v${{ env.version }} | |
path: build/bin/* |