This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (63 loc) · 2.36 KB
/
build.yml
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
62
63
64
65
name: Build
on: [push]
jobs:
build_windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel briefcase
- name: Inject files to briefcase templates
run: |
curl -o template.zip -L https://github.com/beeware/$env:TEMPLATE_BASE/archive/$env:TEMPLATE_COMMIT.zip
unzip template.zip
mv "$env:TEMPLATE_BASE-$env:TEMPLATE_COMMIT" beeware_template
cp "package/windows/{{ cookiecutter.app_name }}.wxs" "beeware_template/{{ cookiecutter.formal_name }}/"
cp "package/windows/{{ cookiecutter.app_name }}.bat" "beeware_template/{{ cookiecutter.formal_name }}/src/app/"
env:
TEMPLATE_BASE: briefcase-windows-msi-template
TEMPLATE_COMMIT: 62da9d2b0f133532ed947a2c36043e039a90a184
- name: Build application
run: briefcase package
- name: Upload installer to artifacts
uses: actions/upload-artifact@v2
with:
name: playcord-windows
path: windows/*.msi
build_linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install libgirepository1.0-dev libcairo2-dev libpango1.0-dev unzip
pip install wheel briefcase
- name: Inject files to briefcase templates
run: |
curl -o template.zip -L https://github.com/beeware/$TEMPLATE_BASE/archive/$TEMPLATE_COMMIT.zip
unzip template.zip
mv "$TEMPLATE_BASE-$TEMPLATE_COMMIT" beeware_template
cp "package/linux/{{ cookiecutter.bundle }}.{{ cookiecutter.app_name }}.desktop" "beeware_template/{{ cookiecutter.formal_name }}/{{ cookiecutter.formal_name }}.AppDir/"
env:
TEMPLATE_BASE: briefcase-linux-appimage-template
TEMPLATE_COMMIT: 1972003a82a72d86c3d993f05ad18cf74dbda992
- name: Build application
run: briefcase package
- name: Upload installer to artifacts
uses: actions/upload-artifact@v2
with:
name: playcord-linux
path: linux/*.AppImage