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-10-23 17:00:32 +00:00
|
|
|
- flet pack main.py --name GramBotMetadataEditor --product-name GramBotMetadataEditor
|
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-10-23 17:00:32 +00:00
|
|
|
- 7z a GramBotMetadataEditor-windows.zip %CD%\dist\*.exe
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
2023-10-23 17:00:32 +00:00
|
|
|
- path: GramBotMetadataEditor-windows.zip
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# macOS package
|
|
|
|
#
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- image: macOS
|
|
|
|
|
|
|
|
after_build:
|
2023-10-23 17:00:32 +00:00
|
|
|
- tar -czvf GramBotMetadataEditor-macos.tar.gz -C dist GramBotMetadataEditor.app
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
2023-10-23 17:00:32 +00:00
|
|
|
- path: GramBotMetadataEditor-macos.tar.gz
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Linux package
|
|
|
|
#
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- image: Ubuntu
|
|
|
|
|
|
|
|
after_build:
|
2023-10-23 17:00:32 +00:00
|
|
|
- tar -czvf GramBotMetadataEditor-linux.tar.gz -C dist GramBotMetadataEditor
|
2023-05-10 14:26:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
2023-10-23 17:00:32 +00:00
|
|
|
- path: GramBotMetadataEditor-linux.tar.gz
|