mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Update installer workflow for universal macOS binary
Bump python to 3.11
This commit is contained in:
parent
36fbff5503
commit
b48e9f4074
2 changed files with 15 additions and 7 deletions
19
.github/workflows/publish-installers.yml
vendored
19
.github/workflows/publish-installers.yml
vendored
|
@ -6,10 +6,13 @@ on:
|
||||||
branches: [master, beta, nightly]
|
branches: [master, beta, nightly]
|
||||||
tags: [v*]
|
tags: [v*]
|
||||||
|
|
||||||
|
env:
|
||||||
|
PYTHON_VERSION: '3.11'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-installer:
|
build-installer:
|
||||||
name: Build ${{ matrix.os_upper }} Installer
|
name: Build ${{ matrix.os_upper }} Installer
|
||||||
runs-on: ${{ matrix.os }}-latest
|
runs-on: ${{ matrix.os }}-${{ matrix.os_version }}
|
||||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -17,9 +20,13 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- os: 'windows'
|
- os: 'windows'
|
||||||
os_upper: 'Windows'
|
os_upper: 'Windows'
|
||||||
|
os_version: 'latest'
|
||||||
|
arch: 'x64'
|
||||||
ext: 'exe'
|
ext: 'exe'
|
||||||
- os: 'macos'
|
- os: 'macos'
|
||||||
os_upper: 'MacOS'
|
os_upper: 'MacOS'
|
||||||
|
os_version: '14'
|
||||||
|
arch: 'universal'
|
||||||
ext: 'pkg'
|
ext: 'pkg'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -54,14 +61,14 @@ jobs:
|
||||||
- name: Set Up Python
|
- name: Set Up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
cache: pip
|
cache: pip
|
||||||
cache-dependency-path: '**/requirements*.txt'
|
cache-dependency-path: '**/requirements*.txt'
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r package/requirements-package.txt
|
pip install -r package/requirements-package.txt --no-binary cffi
|
||||||
|
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: |
|
||||||
|
@ -74,7 +81,7 @@ jobs:
|
||||||
script-file: ./package/Tautulli.nsi
|
script-file: ./package/Tautulli.nsi
|
||||||
arguments: >
|
arguments: >
|
||||||
/DVERSION=${{ steps.get_version.outputs.VERSION_NSIS }}
|
/DVERSION=${{ steps.get_version.outputs.VERSION_NSIS }}
|
||||||
/DINSTALLER_NAME=..\Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.exe
|
/DINSTALLER_NAME=..\Tautulli-${{ matrix.os }}-${{ steps.get_version.outputs.RELEASE_VERSION }}-${{ matrix.arch }}.${{ matrix.ext }}
|
||||||
additional-plugin-paths: package/nsis-plugins
|
additional-plugin-paths: package/nsis-plugins
|
||||||
|
|
||||||
- name: Create MacOS Installer
|
- name: Create MacOS Installer
|
||||||
|
@ -85,13 +92,13 @@ jobs:
|
||||||
--version ${{ steps.get_version.outputs.VERSION }} \
|
--version ${{ steps.get_version.outputs.VERSION }} \
|
||||||
--component ./dist/Tautulli.app \
|
--component ./dist/Tautulli.app \
|
||||||
--scripts ./package/macos-scripts \
|
--scripts ./package/macos-scripts \
|
||||||
Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.pkg
|
Tautulli-${{ matrix.os }}-${{ steps.get_version.outputs.RELEASE_VERSION }}-${{ matrix.arch }}.${{ matrix.ext }}
|
||||||
|
|
||||||
- name: Upload Installer
|
- name: Upload Installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Tautulli-${{ matrix.os }}-installer
|
name: Tautulli-${{ matrix.os }}-installer
|
||||||
path: Tautulli-${{ matrix.os }}-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.${{ matrix.ext }}
|
path: Tautulli-${{ matrix.os }}-${{ steps.get_version.outputs.RELEASE_VERSION }}-${{ matrix.arch }}.${{ matrix.ext }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release Installers
|
name: Release Installers
|
||||||
|
|
|
@ -35,7 +35,8 @@ exe = EXE(
|
||||||
name='Tautulli',
|
name='Tautulli',
|
||||||
console=False,
|
console=False,
|
||||||
icon='../data/interfaces/default/images/logo-circle.icns',
|
icon='../data/interfaces/default/images/logo-circle.icns',
|
||||||
contents_directory='.'
|
contents_directory='.',
|
||||||
|
target_arch='universal2'
|
||||||
)
|
)
|
||||||
coll = COLLECT(
|
coll = COLLECT(
|
||||||
exe,
|
exe,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue