|
|
@@ -41,33 +41,53 @@ tasks:
|
|
|
|
# cmds:
|
|
|
|
# cmds:
|
|
|
|
# - fyne package -os web --app-id name.pztrn.bunker.client -icon ../../Icon.png --release --name "pztrn's Bunker" --app-version "{{ .CLIENT_VERSION }}" --app-build "{{ .BUILD }}" {{ .MetadataParams }}
|
|
|
|
# - fyne package -os web --app-id name.pztrn.bunker.client -icon ../../Icon.png --release --name "pztrn's Bunker" --app-version "{{ .CLIENT_VERSION }}" --app-build "{{ .BUILD }}" {{ .MetadataParams }}
|
|
|
|
|
|
|
|
|
|
|
|
build-darwin-amd64:
|
|
|
|
build-dist:
|
|
|
|
desc: "Build darwin/arm64 using fyne-cross"
|
|
|
|
desc: "Builds windows/amd64, linux/amd64, darwin/arm64, android/arm64 distribution archives."
|
|
|
|
cmds:
|
|
|
|
cmds:
|
|
|
|
- task: ::ensure-builddir
|
|
|
|
- task: build-dist-android-arm64
|
|
|
|
- task: cleanup
|
|
|
|
- task: build-dist-darwin
|
|
|
|
- fyne-cross darwin -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -arch=amd64 -category=6007 -pull client/cmd/client
|
|
|
|
- task: build-dist-linux-amd64
|
|
|
|
|
|
|
|
- task: build-dist-windows-amd64
|
|
|
|
|
|
|
|
|
|
|
|
build-darwin-arm64:
|
|
|
|
build-dist-android-arm64:
|
|
|
|
desc: "Build darwin/arm64 using fyne-cross"
|
|
|
|
desc: "Build android/arm64 APK file."
|
|
|
|
|
|
|
|
dir: ./client/cmd/client
|
|
|
|
cmds:
|
|
|
|
cmds:
|
|
|
|
- task: ::ensure-builddir
|
|
|
|
- task: ensure-dist-dir
|
|
|
|
- task: cleanup
|
|
|
|
#- fyne-cross android -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -arch=arm64 -pull client/cmd/client
|
|
|
|
- fyne-cross darwin -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -arch=arm64 -category=6007 -pull client/cmd/client
|
|
|
|
- fyne package --release --target=android/arm64 --app-id name.pztrn.bunker.client -icon ../../../Icon.png --name "pztrn's Bunker" --app-version "{{ .CLIENT_VERSION }}" --app-build "{{ .BUILD }}" {{ .MetadataParams }}
|
|
|
|
|
|
|
|
- mv pztrn_s_Bunker.apk "../../../dist/pztrn's Bunker-{{ .CLIENT_VERSION }}-{{ .BUILD }}-android-arm64.apk"
|
|
|
|
|
|
|
|
|
|
|
|
build-linux-amd64:
|
|
|
|
build-dist-darwin:
|
|
|
|
|
|
|
|
desc: "Build darwin (macOS) version."
|
|
|
|
|
|
|
|
dir: ./client/cmd/client
|
|
|
|
|
|
|
|
cmds:
|
|
|
|
|
|
|
|
- task: ensure-dist-dir
|
|
|
|
|
|
|
|
#- fyne-cross darwin -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -arch=arm64 -category=6007 -pull {{ .MetadataParams }} client/cmd/client
|
|
|
|
|
|
|
|
- fyne package --release --target=darwin --app-id name.pztrn.bunker.client -executable name.pztrn.bunker.client -icon ../../../Icon.png --name "pztrn's Bunker" --app-version "{{ .CLIENT_VERSION }}" --app-build "{{ .BUILD }}" {{ .MetadataParams }}
|
|
|
|
|
|
|
|
- tar -czf "pztrn's Bunker-{{ .CLIENT_VERSION }}-{{ .BUILD }}-darwin-arm64.tar.gz" *.app
|
|
|
|
|
|
|
|
- mv *.tar.gz ../../../dist/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-dist-ios:
|
|
|
|
|
|
|
|
desc: "Build iOS version."
|
|
|
|
|
|
|
|
dir: ./client/cmd/client
|
|
|
|
|
|
|
|
cmds:
|
|
|
|
|
|
|
|
- task: ensure-dist-dir
|
|
|
|
|
|
|
|
- fyne package --release --target=ios --app-id name.pztrn.bunker.client -icon ../../../Icon.png --name "pztrn's Bunker" --app-version "{{ .CLIENT_VERSION }}" --app-build "{{ .BUILD }}" {{ .MetadataParams }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-dist-linux-amd64:
|
|
|
|
desc: "Build linux/amd64 using fyne-cross"
|
|
|
|
desc: "Build linux/amd64 using fyne-cross"
|
|
|
|
cmds:
|
|
|
|
cmds:
|
|
|
|
- task: ::ensure-builddir
|
|
|
|
- task: ensure-dist-dir
|
|
|
|
- task: cleanup
|
|
|
|
- fyne-cross linux -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -arch=amd64 -pull {{ .MetadataParams }} client/cmd/client
|
|
|
|
- fyne-cross linux -app-id=name.pztrn.bunker.client -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -icon=client/Icon.png -arch=amd64 -name="pztrn's Bunker" -pull client/cmd/client
|
|
|
|
- mv "fyne-cross/dist/linux-amd64/pztrn's Bunker.tar.xz" "dist/pztrn's Bunker-{{ .CLIENT_VERSION }}-{{ .BUILD }}-linux-amd64.tar.xz"
|
|
|
|
|
|
|
|
|
|
|
|
build-windows-amd64:
|
|
|
|
build-dist-windows-amd64:
|
|
|
|
desc: "Build windows/amd64 using fyne-cross"
|
|
|
|
desc: "Build windows/amd64 using fyne-cross"
|
|
|
|
cmds:
|
|
|
|
cmds:
|
|
|
|
- task: ::ensure-builddir
|
|
|
|
- task: ensure-dist-dir
|
|
|
|
- task: cleanup
|
|
|
|
- fyne-cross windows -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -arch=amd64 -pull {{ .MetadataParams }} client/cmd/client
|
|
|
|
- fyne-cross windows -app-id=name.pztrn.bunker.client -app-version="{{ .CLIENT_VERSION }}" -app-build="{{ .BUILD }}" -icon=client/Icon.png -arch=amd64 -name="pztrn's Bunker" -pull client/cmd/client
|
|
|
|
- mv "fyne-cross/dist/windows-amd64/pztrn's Bunker.exe.zip" "dist/pztrn's Bunker-{{ .CLIENT_VERSION }}-{{ .BUILD }}-windows-amd64.zip"
|
|
|
|
|
|
|
|
|
|
|
|
cleanup:
|
|
|
|
cleanup:
|
|
|
|
desc: "Cleanup build environment."
|
|
|
|
desc: "Cleanup build environment."
|
|
|
@@ -75,6 +95,12 @@ tasks:
|
|
|
|
- rm .build/{{ .ClientBinary }}
|
|
|
|
- rm .build/{{ .ClientBinary }}
|
|
|
|
ignore_error: true
|
|
|
|
ignore_error: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ensure-dist-dir:
|
|
|
|
|
|
|
|
desc: "Ensures dist directory in repo root exists."
|
|
|
|
|
|
|
|
internal: true
|
|
|
|
|
|
|
|
cmds:
|
|
|
|
|
|
|
|
- mkdir dist || exit 0
|
|
|
|
|
|
|
|
|
|
|
|
run:
|
|
|
|
run:
|
|
|
|
desc: "Launch client."
|
|
|
|
desc: "Launch client."
|
|
|
|
cmds:
|
|
|
|
cmds:
|
|
|
|