-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #464 from loathingKernel/develop
Rare: enforce utf-8 encoding in some places, should fix subtle issues on Windows
- Loading branch information
Showing
19 changed files
with
266 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: job_nuitka-linux | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: pip | ||
python-version: '3.12' | ||
check-latest: true | ||
architecture: x64 | ||
- name: Install build dependencies | ||
run: pip3 install nuitka ordered-set | ||
- name: Install target dependencies | ||
run: | | ||
pip3 install -r requirements.txt | ||
pip3 install -r requirements-presence.txt | ||
- name: Build | ||
run: >- | ||
python -m nuitka | ||
--assume-yes-for-downloads | ||
--lto=no | ||
--jobs=4 | ||
--static-libpython=no | ||
--standalone | ||
--enable-plugin=anti-bloat | ||
--enable-plugin=pyside6 | ||
--show-modules | ||
--show-anti-bloat-changes | ||
--follow-stdlib | ||
--follow-imports | ||
--nofollow-import-to="*.tests" | ||
--nofollow-import-to="*.distutils" | ||
--nofollow-import-to="distutils" | ||
--nofollow-import-to="unittest" | ||
--nofollow-import-to="pydoc" | ||
--nofollow-import-to="tkinter" | ||
--nofollow-import-to="test" | ||
--prefer-source-code | ||
--include-package=pypresence | ||
--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 | ||
rare | ||
- name: Compress | ||
run: | | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: job_nuitka-macos | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: "macos-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: pip | ||
python-version: '3.12' | ||
check-latest: true | ||
architecture: x64 | ||
- name: Install build dependencies | ||
run: pip3 install nuitka ordered-set | ||
- name: Install target dependencies | ||
run: | | ||
pip3 install -r requirements.txt | ||
pip3 install -r requirements-presence.txt | ||
- name: Build | ||
run: >- | ||
python -m nuitka | ||
--assume-yes-for-downloads | ||
--clang | ||
--lto=no | ||
--jobs=4 | ||
--static-libpython=no | ||
--standalone | ||
--enable-plugin=anti-bloat | ||
--enable-plugin=pyside6 | ||
--show-modules | ||
--show-anti-bloat-changes | ||
--follow-stdlib | ||
--follow-imports | ||
--nofollow-import-to="*.tests" | ||
--nofollow-import-to="*.distutils" | ||
--nofollow-import-to="distutils" | ||
--nofollow-import-to="unittest" | ||
--nofollow-import-to="pydoc" | ||
--nofollow-import-to="tkinter" | ||
--nofollow-import-to="test" | ||
--prefer-source-code | ||
--include-package=pypresence | ||
--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.icns | ||
--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 | ||
rare | ||
- name: Compress | ||
run: | | ||
python -c "import shutil; shutil.make_archive('Rare', 'zip', 'rare.dist')" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Rare-portable-macos-${{ inputs.version }}.zip | ||
path: Rare.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.