Skip to content

Commit

Permalink
Merge pull request #5 from Jimmy01240397/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent550102 authored Nov 5, 2023
2 parents 5cd2161 + 6329b9b commit 9ad5ef3
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Package Application with Pyinstaller

on:
push:
tags:
- '*'

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2

- name: Package Application
uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3
with:
path: .
- name: Package Application
uses: JackMcKew/pyinstaller-action-linux@python3.10
with:
path: .
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/windows/MoodleAttendanceCracker.exe,dist/linux/MoodleAttendanceCracker"
token: ${{ secrets.GITHUB_TOKEN }}

36 changes: 36 additions & 0 deletions build.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='MoodleAttendanceCracker',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests==2.28.1

0 comments on commit 9ad5ef3

Please sign in to comment.