Skip to content

Commit

Permalink
Add appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed May 10, 2023
1 parent bfa9e45 commit a63a2f7
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
69 changes: 69 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
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 PropScoreEditor --product-name PropScoreEditor

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 PropScoreEditor-windows.zip %CD%\dist\*.exe

artifacts:
- path: PropScoreEditor-windows.zip

#
# macOS package
#
-
matrix:
only:
- image: macOS

after_build:
- tar -czvf PropScoreEditor-macos.tar.gz -C dist PropScoreEditor.app

artifacts:
- path: PropScoreEditor-macos.tar.gz

#
# Linux package
#
-
matrix:
only:
- image: Ubuntu

after_build:
- tar -czvf PropScoreEditor-linux.tar.gz -C dist PropScoreEditor

artifacts:
- path: PropScoreEditor-linux.tar.gz
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flet
PyInstaller

0 comments on commit a63a2f7

Please sign in to comment.