From a63a2f711e348ae94410281bf3e5ca0afb73612f Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 10 May 2023 22:26:12 +0800 Subject: [PATCH] Add appveyor --- appveyor.yml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 70 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..2d79e35 --- /dev/null +++ b/appveyor.yml @@ -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 diff --git a/requirements.txt b/requirements.txt index 8db06ba..f62d67f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ flet +PyInstaller