Skip to content

Commit

Permalink
Fix Pyinstaller executables and update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
norinorin committed Oct 28, 2024
1 parent 6429903 commit c3c9160
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ jobs:
python_ver: '3.10'
spec: 'launcher.py'
requirements: 'requirements.txt'
options: --onefile, --name anime_rpc
options: --onefile, --name anime_rpc, --optimize 2, --additional-hooks-dir=.
clean_checkout: false
- name: Get version
id: get_version
run: echo "version=$(python -c 'import anime_rpc; print(anime_rpc.__version__)')" >> $GITHUB_OUTPUT
- name: Zip the module
run: |
mv LICENSE ./dist/
zip -r ./anime_rpc.zip ./dist
- name: Create release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: latest
allowUpdates: true
tag: ${{ steps.get_version.outputs.new_version }}
artifacts: "./dist/anime_rpc.exe"
replacesArtifacts: true
2 changes: 2 additions & 0 deletions anime_rpc/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__author__ = "norinorin"
__version__ = "1.0.1"
1 change: 1 addition & 0 deletions hook-anime_rpc.monkey_patch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module_collection_mode = {"discordrpc.presence": "pyz+py"}

0 comments on commit c3c9160

Please sign in to comment.