2023-08-14 07:58:12 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- main
|
|
|
|
- /^v\d+\.\d+$/
|
|
|
|
|
2023-05-10 14:26:12 +00:00
|
|
|
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:
|
2023-08-14 07:58:12 +00:00
|
|
|
- flet pack main.py --name FightPropRuleEditor --product-name FightPropRuleEditor
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
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:
|
2023-08-14 07:58:12 +00:00
|
|
|
- 7z a FightPropRuleEditor-windows.zip %CD%\dist\*.exe
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
2023-08-14 07:58:12 +00:00
|
|
|
- path: FightPropRuleEditor-windows.zip
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# macOS package
|
|
|
|
#
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- image: macOS
|
|
|
|
|
|
|
|
after_build:
|
2023-08-14 07:58:12 +00:00
|
|
|
- tar -czvf FightPropRuleEditor-macos.tar.gz -C dist FightPropRuleEditor.app
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
2023-08-14 07:58:12 +00:00
|
|
|
- path: FightPropRuleEditor-macos.tar.gz
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Linux package
|
|
|
|
#
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- image: Ubuntu
|
|
|
|
|
|
|
|
after_build:
|
2023-08-14 07:58:12 +00:00
|
|
|
- tar -czvf FightPropRuleEditor-linux.tar.gz -C dist FightPropRuleEditor
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
2023-08-14 07:58:12 +00:00
|
|
|
- path: FightPropRuleEditor-linux.tar.gz
|