Skip to content

fix url in binary again #6

fix url in binary again

fix url in binary again #6

Workflow file for this run

name: Wails Release
on:
push:
tags:
- "v*"
env:
GO_VERSION: "1.21"
defaults:
run:
working-directory: desktop
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: "**/go.sum"
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install frontend deps with Bun
run: |
cd frontend
bun install
- name: Install Windows cross-compilation toolchain
run: sudo apt-get update && sudo apt-get install -y mingw-w64
- name: Install NSIS for Windows Installer
run: sudo apt-get install -y nsis
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Build Wails Application
run: |
wails build -nsis -platform windows/amd64 \
-ldflags "-X main.apiURL=${{ secrets.PUBLIC_API_URL }}"
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: desktop/build/bin/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}