Skip to content

Commit

Permalink
Download dependency wheels, remove duplicate LICENSE file from install
Browse files Browse the repository at this point in the history
  • Loading branch information
Callum027 committed Dec 2, 2023
1 parent 86d7719 commit b77dbfb
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ on:
- published

jobs:
docker:
buildarr-installer:
runs-on: ubuntu-22.04
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Update APT package metadata
- name: Update package metadata
run: sudo apt-get update
- name: Install NSIS
run: sudo apt-get install -y nsis
- name: Install system packages
run: sudo apt-get install -y make nsis
- name: Install pynsist
run: python -m pip install pynsist
- name: Check out the repository
uses: actions/checkout@v4
- name: Build Buildarr installer
run: pynsist installer.cfg
run: make
- name: Upload Buildarr installer to release
uses: xresloader/upload-to-github-release@v1
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ on:
workflow_dispatch:

jobs:
docker:
buildarr-installer:
runs-on: ubuntu-22.04
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Update APT package metadata
- name: Update package metadata
run: sudo apt-get update
- name: Install NSIS
run: sudo apt-get install -y nsis
- name: Install system packages
run: sudo apt-get install -y make nsis
- name: Install pynsist
run: python -m pip install pynsist
- name: Check out the repository
uses: actions/checkout@v4
- name: Build Buildarr installer
run: pynsist installer.cfg
run: make
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
wheels
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
all: wheels buildarr-installer

.PHONY: wheels
wheels:
python -m pip download --no-cache-dir --platform win_amd64 --only-binary=:all: --dest wheels --requirement requirements.txt

.PHONY: buildarr-installer
buildarr-installer: wheels
pynsist installer.cfg

.PHONY: clean
clean:
rm -rf build

.PHONY: wheels-clean
wheels-clean:
rm -rf wheels
8 changes: 2 additions & 6 deletions installer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ bitness = 64
include_msvcrt = false

[Include]
pypi_wheels = buildarr==0.7.1
buildarr-sonarr==0.6.3
buildarr-radarr==0.2.3
buildarr-prowlarr==0.5.1
buildarr-jellyseerr==0.3.1
files = LICENSE.txt
local_wheels = wheels/*.whl
# files =

[Build]
directory = build/nsis/
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
buildarr==0.7.1
buildarr-sonarr==0.6.3
buildarr-radarr==0.2.3
buildarr-prowlarr==0.5.1
buildarr-jellyseerr==0.3.1

0 comments on commit b77dbfb

Please sign in to comment.