From c747b0d3accf210aaf7611e9b56186a19965f306 Mon Sep 17 00:00:00 2001 From: lrs <99574908+lrsgzs@users.noreply.github.com> Date: Tue, 27 Jun 2023 18:34:46 +0800 Subject: [PATCH] Add files via upload --- main.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ main.ui | 2 +- main_ui.py | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 main.spec diff --git a/main.spec b/main.spec new file mode 100644 index 0000000..28d0bf7 --- /dev/null +++ b/main.spec @@ -0,0 +1,50 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='main', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) +coll = COLLECT( + exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='main', +) diff --git a/main.ui b/main.ui index 6ffe962..5aac450 100644 --- a/main.ui +++ b/main.ui @@ -29,7 +29,7 @@ - # GlobalInterPark 抢票软件2.0 + # GlobalInterPark 抢票软件 Qt::MarkdownText diff --git a/main_ui.py b/main_ui.py index 6ab5668..6a47080 100644 --- a/main_ui.py +++ b/main_ui.py @@ -415,7 +415,7 @@ def setupUi(self, MainWindow): def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "GlobalInterPark 抢票软件")) - self.label.setText(_translate("MainWindow", "# GlobalInterPark 抢票软件2.0")) + self.label.setText(_translate("MainWindow", "# GlobalInterPark 抢票软件")) self.label_2.setText(_translate("MainWindow", "网址:")) self.getticket.setText(_translate("MainWindow", "开始抢票")) self.label_3.setText(_translate("MainWindow", "账号:"))