-
Notifications
You must be signed in to change notification settings - Fork 28
61 lines (51 loc) · 2.23 KB
/
Copy pathbuild_macos_intel.yml
File metadata and controls
61 lines (51 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build MacOS Intel Executable with PyInstaller
on:
release:
types: [published]
jobs:
build:
runs-on: macos-15-intel
permissions:
contents: write # Grants write access to repository contents for this job only
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # Specify your desired Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller requests
# If you have a requirements.txt file:
# Install requirements later, as may make binary smaller
#pip install -r requirements.txt
# Do this first, as has less dependencies
- name: Package BrowseApplication with PyInstaller
run: |
# Replace 'your_script.py' with your main Python script or 'your_app.spec' if using a spec file
pyinstaller --onefile BrowseRoyalCaribbeanPrice.py
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /Users/runner/work/CheckRoyalCaribbeanPrice/CheckRoyalCaribbeanPrice/dist/BrowseRoyalCaribbeanPrice
asset_name: BrowseRoyalCaribbeanPrice_MacOS_intel
asset_content_type: application/octet-stream
- name: Package Application with PyInstaller
run: |
# Replace 'your_script.py' with your main Python script or 'your_app.spec' if using a spec file
pip install PyYAML Apprise curl_cffi
pyinstaller --onefile --collect-all apprise CheckRoyalCaribbeanPrice.py
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /Users/runner/work/CheckRoyalCaribbeanPrice/CheckRoyalCaribbeanPrice/dist/CheckRoyalCaribbeanPrice
asset_name: CheckRoyalCaribbeanPrice_MacOS_intel
asset_content_type: application/octet-stream