From 24ebfce5c309cc8f3cacbaafb7e1dbe907cd312c Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Wed, 6 Mar 2024 22:35:51 +0800 Subject: [PATCH] revert: revert to default structure --- .github/workflows/release.yaml | 33 ------------------------ MsgPack.py => Bot/MsgPack.py | 0 Storage.py => Bot/Storage.py | 0 __main__.py => Bot/__main__.py | 0 constants.py => Bot/constants.py | 0 __main__.spec | 43 -------------------------------- 6 files changed, 76 deletions(-) delete mode 100644 .github/workflows/release.yaml rename MsgPack.py => Bot/MsgPack.py (100%) rename Storage.py => Bot/Storage.py (100%) rename __main__.py => Bot/__main__.py (100%) rename constants.py => Bot/constants.py (100%) delete mode 100644 __main__.spec diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 32bf8da..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,33 +0,0 @@ -on: - push: - branches: - - main -name: Handle Windows Release -jobs: - generate_windows: - name: Create windows release-artifacts - runs-on: ubuntu-latest - steps: - - name: PyInstaller Windows - uses: JackMcKew/pyinstaller-action-windows@main - with: - path: . - - - uses: actions/upload-artifact@v2 - with: - name: name-of-artifact - path: dist/windows - - generate_linux: - name: Create linux release-artifacts - runs-on: ubuntu-latest - steps: - - name: PyInstaller Linux - uses: JackMcKew/pyinstaller-action-linux@0.1.4 - with: - path: . - - - uses: actions/upload-artifact@v2 - with: - name: name-of-artifact - path: dist/linux diff --git a/MsgPack.py b/Bot/MsgPack.py similarity index 100% rename from MsgPack.py rename to Bot/MsgPack.py diff --git a/Storage.py b/Bot/Storage.py similarity index 100% rename from Storage.py rename to Bot/Storage.py diff --git a/__main__.py b/Bot/__main__.py similarity index 100% rename from __main__.py rename to Bot/__main__.py diff --git a/constants.py b/Bot/constants.py similarity index 100% rename from constants.py rename to Bot/constants.py diff --git a/__main__.spec b/__main__.spec deleted file mode 100644 index 3ec0fa0..0000000 --- a/__main__.spec +++ /dev/null @@ -1,43 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - - -a = Analysis( - ['Bot\\__main__.py'], - pathex=[], - binaries=[], - datas=[], - hiddenimports=[], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - noarchive=False, -) -pyz = PYZ(a.pure) - -exe = EXE( - pyz, - a.scripts, - [], - exclude_binaries=True, - name='__main__', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -) -coll = COLLECT( - exe, - a.binaries, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='__main__', -)