Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dev_mode:
# - "*.ts" # The frontend directory will be excluded entirely by the setting above.
git_ignore: true
executes:
- cmd: wails3 build DEV=true
- cmd: wails3 build DEV=true -tags gtk3
type: blocking
- cmd: wails3 task common:dev:frontend
type: background
Expand Down
26 changes: 25 additions & 1 deletion build/linux/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tasks:
# 1. Cross-compiling from non-Linux, OR
# 2. No C compiler is available, OR
# 3. Target architecture differs from host architecture (cross-arch compilation)
- task: '{{if and (eq OS "linux") (eq .HAS_CC "true") (eq .TARGET_ARCH ARCH)}}build:native{{else}}build:docker{{end}}'
- task: '{{if and (eq OS "linux") (eq .GOOS "linux") (eq .HAS_CC "true") (eq .TARGET_ARCH ARCH)}}build:native{{else}}build:docker{{end}}'
vars:
ARCH: '{{.ARCH}}'
DEV: '{{.DEV}}'
Expand Down Expand Up @@ -63,6 +63,30 @@ tasks:
# CATEGORIES: 'Development;'
# OUTPUTFILE: '{{.ROOT_DIR}}/build/linux/{{.APP_NAME}}.desktop'

build:docker:
summary: Cross-compiles the application for non-Linux targets (e.g. Windows)
internal: true
deps:
- task: common:go:mod:tidy
- task: common:build:frontend
vars:
BUILD_FLAGS:
ref: .BUILD_FLAGS
DEV:
ref: .DEV
- task: common:generate:icons
cmds:
- go build {{.BUILD_FLAGS}} -o {{.OUTPUT}}
vars:
BUILD_FLAGS: '{{if eq .DEV "true"}}{{if .EXTRA_TAGS}}-tags {{.EXTRA_TAGS}} {{end}}-buildvcs=false -gcflags=all="-l"{{else}}-tags production{{if .EXTRA_TAGS}},{{.EXTRA_TAGS}}{{end}} -trimpath -buildvcs=false -ldflags="-w -s"{{end}}'
DEFAULT_OUTPUT: '{{.BIN_DIR}}/{{.APP_NAME}}'
OUTPUT: '{{ .OUTPUT | default .DEFAULT_OUTPUT }}{{if eq .GOOS "windows"}}.exe{{end}}'
env:
GOOS: '{{.GOOS}}'
CGO_ENABLED: 1
GOARCH: '{{.ARCH | default ARCH}}'
CC: x86_64-w64-mingw32-gcc

run:
cmds:
- '{{.BIN_DIR}}/{{.APP_NAME}}'
6 changes: 3 additions & 3 deletions frontend/biome.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["src/**", "public/**"]
"includes": ["src/**", "public/**", "!!**/*.svg"]
},
"formatter": {
"enabled": true,
Expand All @@ -17,7 +17,7 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"preset": "recommended",
"suspicious": {
"noExplicitAny": "warn"
},
Expand Down
12 changes: 6 additions & 6 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
},
"dependencies": {
"@thisux/sveltednd": "^0.4.1",
"@wailsio/runtime": "3.0.0-alpha.72",
"@wailsio/runtime": "3.0.0-alpha.97",
"superjson": "^2.2.6",
"svelte": "^5.46.0",
"svelte": "^5.56.4",
"svelte-5-french-toast": "^2.0.6",
"svelte-portal": "^2.2.1"
},
"devDependencies": {
"@biomejs/biome": "^2.5.1",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"typescript": "^5.9.3",
"vite": "npm:vite@7.3.1"
"@biomejs/biome": "^2.5.3",
"@sveltejs/vite-plugin-svelte": "^7.2.0",
"typescript": "^7.0.2",
"vite": "npm:vite@8.1.4"
}
}
Loading