From d96635e7fe944c4a59b47c326ef41526b1c1f73b Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 2 Sep 2023 11:52:19 +0800 Subject: test keepreboot and fixed normal reboot or normal reboot rebooting --- dist/main-mac | Bin 0 -> 7459424 bytes dist/main.app.zip | Bin 0 -> 7384677 bytes dist/main.app/Contents/Info.plist | 24 ++++ dist/main.app/Contents/MacOS/main | Bin 0 -> 7459424 bytes .../main.app/Contents/Resources/icon-windowed.icns | Bin 0 -> 110199 bytes .../main.app/Contents/_CodeSignature/CodeResources | 128 +++++++++++++++++++++ dist/setup-mac | Bin 0 -> 7448384 bytes dist/setup.app.zip | Bin 0 -> 7373229 bytes dist/setup.app/Contents/Info.plist | 24 ++++ dist/setup.app/Contents/MacOS/setup | Bin 0 -> 7448384 bytes .../Contents/Resources/icon-windowed.icns | Bin 0 -> 110199 bytes .../Contents/_CodeSignature/CodeResources | 128 +++++++++++++++++++++ main.py | 23 +++- 13 files changed, 326 insertions(+), 1 deletion(-) create mode 100755 dist/main-mac create mode 100644 dist/main.app.zip create mode 100644 dist/main.app/Contents/Info.plist create mode 100755 dist/main.app/Contents/MacOS/main create mode 100755 dist/main.app/Contents/Resources/icon-windowed.icns create mode 100644 dist/main.app/Contents/_CodeSignature/CodeResources create mode 100755 dist/setup-mac create mode 100644 dist/setup.app.zip create mode 100644 dist/setup.app/Contents/Info.plist create mode 100755 dist/setup.app/Contents/MacOS/setup create mode 100755 dist/setup.app/Contents/Resources/icon-windowed.icns create mode 100644 dist/setup.app/Contents/_CodeSignature/CodeResources diff --git a/dist/main-mac b/dist/main-mac new file mode 100755 index 0000000..83ae7ed Binary files /dev/null and b/dist/main-mac differ diff --git a/dist/main.app.zip b/dist/main.app.zip new file mode 100644 index 0000000..5cc0dbf Binary files /dev/null and b/dist/main.app.zip differ diff --git a/dist/main.app/Contents/Info.plist b/dist/main.app/Contents/Info.plist new file mode 100644 index 0000000..d658c02 --- /dev/null +++ b/dist/main.app/Contents/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDisplayName + main + CFBundleExecutable + main + CFBundleIconFile + icon-windowed.icns + CFBundleIdentifier + main + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + main + CFBundlePackageType + APPL + CFBundleShortVersionString + 0.0.0 + NSHighResolutionCapable + + + diff --git a/dist/main.app/Contents/MacOS/main b/dist/main.app/Contents/MacOS/main new file mode 100755 index 0000000..d665508 Binary files /dev/null and b/dist/main.app/Contents/MacOS/main differ diff --git a/dist/main.app/Contents/Resources/icon-windowed.icns b/dist/main.app/Contents/Resources/icon-windowed.icns new file mode 100755 index 0000000..954a9a0 Binary files /dev/null and b/dist/main.app/Contents/Resources/icon-windowed.icns differ diff --git a/dist/main.app/Contents/_CodeSignature/CodeResources b/dist/main.app/Contents/_CodeSignature/CodeResources new file mode 100644 index 0000000..ae69c02 --- /dev/null +++ b/dist/main.app/Contents/_CodeSignature/CodeResources @@ -0,0 +1,128 @@ + + + + + files + + Resources/icon-windowed.icns + + eEHOuYpZLB0vKGVIWGZOh5rH8+o= + + + files2 + + Resources/icon-windowed.icns + + hash2 + + uQo7VuWRab4Phv4EEGmfQsyqFqDIXZgO8OtgaAMvCzY= + + + + rules + + ^Resources/ + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ + + nested + + weight + 10 + + ^.* + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^Resources/ + + weight + 20 + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^[^/]+$ + + nested + + weight + 10 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/dist/setup-mac b/dist/setup-mac new file mode 100755 index 0000000..3d805ed Binary files /dev/null and b/dist/setup-mac differ diff --git a/dist/setup.app.zip b/dist/setup.app.zip new file mode 100644 index 0000000..ea6159d Binary files /dev/null and b/dist/setup.app.zip differ diff --git a/dist/setup.app/Contents/Info.plist b/dist/setup.app/Contents/Info.plist new file mode 100644 index 0000000..d086386 --- /dev/null +++ b/dist/setup.app/Contents/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDisplayName + setup + CFBundleExecutable + setup + CFBundleIconFile + icon-windowed.icns + CFBundleIdentifier + setup + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + setup + CFBundlePackageType + APPL + CFBundleShortVersionString + 0.0.0 + NSHighResolutionCapable + + + diff --git a/dist/setup.app/Contents/MacOS/setup b/dist/setup.app/Contents/MacOS/setup new file mode 100755 index 0000000..be03c0f Binary files /dev/null and b/dist/setup.app/Contents/MacOS/setup differ diff --git a/dist/setup.app/Contents/Resources/icon-windowed.icns b/dist/setup.app/Contents/Resources/icon-windowed.icns new file mode 100755 index 0000000..954a9a0 Binary files /dev/null and b/dist/setup.app/Contents/Resources/icon-windowed.icns differ diff --git a/dist/setup.app/Contents/_CodeSignature/CodeResources b/dist/setup.app/Contents/_CodeSignature/CodeResources new file mode 100644 index 0000000..ae69c02 --- /dev/null +++ b/dist/setup.app/Contents/_CodeSignature/CodeResources @@ -0,0 +1,128 @@ + + + + + files + + Resources/icon-windowed.icns + + eEHOuYpZLB0vKGVIWGZOh5rH8+o= + + + files2 + + Resources/icon-windowed.icns + + hash2 + + uQo7VuWRab4Phv4EEGmfQsyqFqDIXZgO8OtgaAMvCzY= + + + + rules + + ^Resources/ + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ + + nested + + weight + 10 + + ^.* + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^Resources/ + + weight + 20 + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^[^/]+$ + + nested + + weight + 10 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/main.py b/main.py index 86b42a1..285c917 100644 --- a/main.py +++ b/main.py @@ -179,7 +179,7 @@ while True: exit() elif command.startswith('syspower'): localcmd = command.split() - if localcmd[1