Skip to content

Commit

Permalink
Merge pull request #487 from loathingKernel/develop
Browse files Browse the repository at this point in the history
Cleanup project files
  • Loading branch information
loathingKernel authored Dec 28, 2024
2 parents 8a92f03 + 092dba1 commit d379f65
Show file tree
Hide file tree
Showing 50 changed files with 48,129 additions and 50,350 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/job_appimage.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/job_cx-freeze-appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: job_cx-freeze-appimage

on:
workflow_call:
inputs:
version:
required: true
type: string

jobs:
build:
name: Package
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build dependencies
run: |
sudo apt update
sudo apt install patchelf fakeroot
- uses: actions/setup-python@v5
with:
cache: pip
python-version: '3.12'
check-latest: true
architecture: x64
- name: Install build dependencies
run: |
pip3 install --upgrade cx_freeze
- name: Install target dependencies
run: |
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: |
python3 freeze.py bdist_appimage
mv dist/Rare-*.AppImage Rare.AppImage
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Rare-${{ inputs.version }}.AppImage
path: Rare.AppImage
43 changes: 43 additions & 0 deletions .github/workflows/job_cx-freeze-dmg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: job_cx-freeze-macos

on:
workflow_call:
inputs:
version:
required: true
type: string

jobs:
build:
name: Package
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
cache: pip
python-version: '3.12'
check-latest: true
architecture: x64
- name: Install build dependencies
run: |
pip3 install --upgrade cx_freeze
- name: Install target dependencies
run: |
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: |
python3 freeze.py bdist_dmg
mv build/Rare.dmg Rare.dmg
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Rare-${{ inputs.version }}.dmg
path: Rare.dmg
17 changes: 11 additions & 6 deletions .github/workflows/job_cx-freeze-msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,35 @@ on:

jobs:
build:
name: Build
name: Package
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
cache: pip
python-version: '3.12'
check-latest: true
architecture: x64
- name: Install build dependencies
run: pip3 install --upgrade cx_freeze wheel
run: |
pip3 install --upgrade cx_freeze
- name: Install target dependencies
run: |
pip3 install -r requirements.txt
pip3 install -r requirements-presence.txt
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: |
python freeze_msi.py bdist_msi
python3 freeze.py bdist_msi
mv dist/*.msi Rare.msi
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Rare-${{ inputs.version }}.msi
path: Rare.msi

47 changes: 0 additions & 47 deletions .github/workflows/job_cx-freeze-zip.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/job_macos.yml

This file was deleted.

31 changes: 17 additions & 14 deletions .github/workflows/job_nuitka-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@ on:

jobs:
build:
name: Build
name: Package
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
cache: pip
python-version: '3.13'
python-version: '3.12'
check-latest: true
architecture: x64
- name: Install build dependencies
run: pip3 install nuitka ordered-set
run: pip3 install nuitka
- name: Install target dependencies
run: |
pip3 install -r requirements.txt
pip3 install -r requirements-presence.txt
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: >-
python -m nuitka
Expand Down Expand Up @@ -53,23 +58,21 @@ jobs:
--include-package-data=qtawesome
--include-data-dir=rare/resources/images/=rare/resources/images/
--include-data-files=rare/resources/languages/rare_*.qm=rare/resources/languages/
--windows-icon-from-ico=rare/resources/images/Rare.png
--windows-company-name=RareDevs
--windows-product-name=Rare
--windows-file-description=rare.exe
--windows-file-version=${{ inputs.version }}
--windows-product-version=${{ inputs.version }}
--windows-console-mode=disable
--output-filename=Rare.bin
--file-description=Rare.bin
--company-name=RareDevs
--product-name=Rare
--file-version=${{ inputs.version }}
--product-version=${{ inputs.version }}
rare
- name: Compress
run: |
find rare.dist -iname "*.so*" -type f -exec strip --strip-all {} \;
strip --strip-all rare.dist/rare.bin
strip --strip-all rare.dist/Rare.bin
python -c "import shutil; shutil.make_archive('Rare', 'zip', 'rare.dist')"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Rare-portable-linux-${{ inputs.version }}.zip
path: Rare.zip

Loading

0 comments on commit d379f65

Please sign in to comment.