-
-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathTaskfile.yml
More file actions
60 lines (50 loc) · 1.54 KB
/
Copy pathTaskfile.yml
File metadata and controls
60 lines (50 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
includes:
common: ./build/Taskfile.yml
windows: ./build/windows/Taskfile.yml
darwin: ./build/darwin/Taskfile.yml
linux: ./build/linux/Taskfile.yml
# iOS and Android are optional - only include if needed
# ios: ./build/ios/Taskfile.yml
# android: ./build/android/Taskfile.yml
vars:
APP_NAME: "MrRSS"
BIN_DIR: "build/bin"
VITE_PORT: '{{.WAILS_VITE_PORT | default 5173}}'
# Keep this version synchronized with github.com/wailsapp/wails/v3 in go.mod.
WAILS3: go run github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0-beta.20
tasks:
build:
summary: Builds the application
cmds:
- task: "{{OS}}:build"
package:
summary: Packages a production build of the application
cmds:
- task: "{{OS}}:package"
run:
summary: Runs the application
cmds:
- task: "{{OS}}:run"
dev:
summary: Runs the application in development mode (monitoring disabled)
cmds:
- '{{.WAILS3}} dev -config ./build/config.yml'
env:
MRRSS_DEBUG: "1"
setup:docker:
summary: Builds Docker image for cross-compilation (~800MB download)
cmds:
- task: common:setup:docker
build:server:
summary: Builds the server version using Docker
cmds:
- task: "{{OS}}:build:server"
docker:build:server:
summary: Builds the server version Docker image
cmds:
- docker build -f Dockerfile.server -t mrrss-server:latest .
docker:run:server:
summary: Runs the server version in Docker
cmds:
- docker run -p 1234:1234 -v {{.PWD}}/data:/app/data mrrss-server:latest