PaiGramMetadata/appveyor.yml
2023-08-14 15:58:12 +08:00

75 lines
1.2 KiB
YAML

branches:
only:
- main
- /^v\d+\.\d+$/
image:
- Visual Studio 2019
- macOS
- Ubuntu
skip_branch_with_pr: true
stack: python 3.10
environment:
GITHUB_TOKEN:
secure: c2JkUCkIoFmqWgf+a9ZZChx9WZXo9rI5xo7cG2xW7St8ybkKMs+FqCm6QemENaAU
install:
- pip install -r requirements.txt
build_script:
- flet pack main.py --name FightPropRuleEditor --product-name FightPropRuleEditor
test: off
# Publish artifacts to GitHub Releases on "tag" builds
deploy:
provider: GitHub
auth_token: $(GITHUB_TOKEN)
on:
APPVEYOR_REPO_TAG: true
#
# Windows package
#
for:
-
matrix:
only:
- image: Visual Studio 2019
after_build:
- 7z a FightPropRuleEditor-windows.zip %CD%\dist\*.exe
artifacts:
- path: FightPropRuleEditor-windows.zip
#
# macOS package
#
-
matrix:
only:
- image: macOS
after_build:
- tar -czvf FightPropRuleEditor-macos.tar.gz -C dist FightPropRuleEditor.app
artifacts:
- path: FightPropRuleEditor-macos.tar.gz
#
# Linux package
#
-
matrix:
only:
- image: Ubuntu
after_build:
- tar -czvf FightPropRuleEditor-linux.tar.gz -C dist FightPropRuleEditor
artifacts:
- path: FightPropRuleEditor-linux.tar.gz