ok-script 0.0.199__tar.gz → 0.0.201__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ok-script-0.0.199/ok_script.egg-info → ok-script-0.0.201}/PKG-INFO +1 -1
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/App.py +1 -1
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/MainWindow.py +1 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/GitUpdater.py +19 -28
- {ok-script-0.0.199 → ok-script-0.0.201/ok_script.egg-info}/PKG-INFO +1 -1
- {ok-script-0.0.199 → ok-script-0.0.201}/setup.py +1 -1
- {ok-script-0.0.199 → ok-script-0.0.201}/LICENSE.txt +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/MANIFEST.in +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/README.md +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/OK.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/alas/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/alas/emulator_base.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/alas/emulator_windows.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/alas/platform_base.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/alas/platform_windows.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/alas/utils.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/analytics/Analytics.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/analytics/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/BaseCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/HwndWindow.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/ADBCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/DeviceManager.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/NemuIpcCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/WindowsCaptureFactory.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/nemu_ipc.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/adb/nemu_utils.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/image/ImageCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/image/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/BaseWindowsCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/BitBltCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/DesktopDuplicationCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/WindowsGraphicsCaptureMethod.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/d3d11.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/dump.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/utils.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/window.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/color/Color.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/color/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/config/Config.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/config/ConfigOption.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/config/GlobalConfig.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/config/InfoDict.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/config/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/display/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/display/custom_types.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/display/display.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/display/display_adapters.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/display/display_monitors.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/display/windows_types.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/feature/Box.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/feature/CompressCoco.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/feature/Feature.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/feature/FeatureSet.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/feature/FindFeature.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/feature/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/Communicate.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/MessageWindow.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/StartController.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/TabTitles.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/about/AboutTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/about/HttpTextEdit.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/about/VersionCard.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/about/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/common/OKIcon.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/common/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/common/config.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/common/style_sheet.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/debug/DebugTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/debug/FrameWidget.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/debug/LogWindow.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/debug/Screenshot.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/debug/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/i18n/GettextTranslator.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/i18n/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/i18n/path.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/i18n/update.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/icon/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/icon/icon.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/launcher/Launcher.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/launcher/LauncherWindow.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/launcher/RunBar.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/launcher/UpdateBar.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/launcher/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/overlay/OverlayWindow.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/overlay/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/qss/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/resources.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/settings/GlobalConfigCard.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/settings/SettingTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/settings/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/start/SelectCaptureListView.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/start/StartCard.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/start/StartTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/start/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/ConfigCard.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/ConfigItemFactory.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/ConfigLabelAndWidget.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndDoubleSpinBox.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndDropDown.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndLineEdit.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndList.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndMultiSelection.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndSpinBox.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndSwitchButton.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/LabelAndWidget.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/ModifyListDialog.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/ModifyListItem.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/OneTimeTaskTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/StartButton.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/TaskCard.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/TaskOpButton.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/TaskTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/TooltipTableWidget.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/TriggerTaskTab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/tasks/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/util/Alert.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/util/InitWorker.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/util/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/util/app.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/Card.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/EmptyCard.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/FlowLayout.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/FramelessDialog.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/ListTableWidgetItem.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/NumericTableWidgetItem.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/StartLoadingDialog.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/StatusBar.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/Tab.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/TabWidget.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/UpdateConfigWidgetItem.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/YesNonWidgetItem.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/gui/widget/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/interaction/ADBInteraction.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/interaction/BaseInteraction.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/interaction/DoNothingInteraction.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/interaction/PostMessageInteraction.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/interaction/PyDirectInteraction.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/interaction/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/logging/LogTailer.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/logging/Logger.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/logging/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/ocr/OCR.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/ocr/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Foundation/Collections.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Foundation/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Globalization/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Graphics/Capture/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Graphics/DirectX/Direct3D11/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Graphics/DirectX/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Graphics/Imaging/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Graphics/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Media/Ocr/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Media/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Security/Cryptography/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Security/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Storage/Streams/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Storage/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/delegate.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/export.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/idldsl.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/inspectable.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/roapi.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/types.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/winstring.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/save/BlackBarProcessor.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/save/PostProcessor.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/save/SaveByInterval.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/save/SaveByKeyPress.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/save/SaveMethodBase.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/save/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/scene/FeatureScene.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/scene/Scene.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/scene/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/stats/StreamStats.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/stats/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/task/BaseTask.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/task/ExecutorOperation.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/task/TaskExecutor.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/task/TriggerTask.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/task/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/GithubMultiDownloader.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/Updater.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/gen_md5.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/init_launcher_env.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/package_launcher.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/update/python_env.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/Handler.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/clazz.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/exit_event.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/json.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/list.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/path.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/thread.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/win32_process.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok/util/yaml.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok_script.egg-info/SOURCES.txt +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok_script.egg-info/dependency_links.txt +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok_script.egg-info/requires.txt +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/ok_script.egg-info/top_level.txt +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/setup.cfg +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/tests/__init__.py +0 -0
- {ok-script-0.0.199 → ok-script-0.0.201}/tests/test_updater.py +0 -0
|
@@ -38,7 +38,7 @@ class App:
|
|
|
38
38
|
self.overlay = self.config.get('debug')
|
|
39
39
|
if self.config.get('git_update'):
|
|
40
40
|
self.updater = GitUpdater(self.config, exit_event)
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
logger.debug(f'locale name {self.locale.name()}')
|
|
43
43
|
|
|
44
44
|
self.loading_window = None
|
|
@@ -100,6 +100,7 @@ class MainWindow(MSFluentWindow):
|
|
|
100
100
|
def showEvent(self, event):
|
|
101
101
|
if event.type() == QEvent.Show:
|
|
102
102
|
logger.info("Window has fully displayed")
|
|
103
|
+
ok.gui.app.updater.update_launcher()
|
|
103
104
|
super().showEvent(event)
|
|
104
105
|
|
|
105
106
|
def starting_emulator(self, done, error, seconds_left):
|
|
@@ -8,13 +8,11 @@ import re
|
|
|
8
8
|
import shutil
|
|
9
9
|
import subprocess
|
|
10
10
|
import sys
|
|
11
|
-
import time
|
|
12
11
|
from functools import cmp_to_key
|
|
13
12
|
|
|
14
13
|
import git
|
|
15
14
|
import psutil
|
|
16
15
|
from PySide6.QtCore import QCoreApplication
|
|
17
|
-
from PySide6.QtWidgets import QApplication
|
|
18
16
|
|
|
19
17
|
from ok.config.Config import Config
|
|
20
18
|
from ok.gui.Communicate import communicate
|
|
@@ -63,32 +61,34 @@ class GitUpdater:
|
|
|
63
61
|
return self.launcher_config.get('app_version')
|
|
64
62
|
|
|
65
63
|
def update_launcher(self):
|
|
64
|
+
self.handler.post(self.do_update_launcher, 5)
|
|
65
|
+
|
|
66
|
+
def do_update_launcher(self):
|
|
67
|
+
logger.info(f'do_update_launcher')
|
|
68
|
+
self.set_start_success()
|
|
69
|
+
self.kill_launcher()
|
|
66
70
|
if self.app_config.get('version') != self.launcher_config.get('launcher_version'):
|
|
67
71
|
logger.info(
|
|
68
72
|
f'need to update launcher version {self.launcher_config.get("launcher_version")} to {self.app_config.get("version")} ')
|
|
69
|
-
self.
|
|
73
|
+
if self.install_dependencies('launcher_env'):
|
|
74
|
+
logger.debug('update launcher_env dependencies success')
|
|
75
|
+
self.launcher_config['launcher_version'] = self.app_config.get('version')
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
copy_exe_files(os.path.join('repo', self.launcher_config['launcher_version']), os.getcwd())
|
|
78
|
+
clean_repo('repo', [self.app_config.get("version")])
|
|
79
|
+
|
|
80
|
+
def kill_launcher(self):
|
|
72
81
|
# Create the parser
|
|
73
82
|
parser = argparse.ArgumentParser(description='Process some parameters.')
|
|
74
|
-
|
|
75
83
|
# Add the arguments
|
|
76
84
|
parser.add_argument('--parent_pid', type=int, help='Parent process ID')
|
|
77
|
-
|
|
78
85
|
# Parse the arguments
|
|
79
86
|
args = parser.parse_args()
|
|
80
|
-
|
|
81
87
|
logger.info(f'parent_pid {args.parent_pid}')
|
|
82
88
|
if args.parent_pid:
|
|
83
|
-
|
|
89
|
+
wait_kill_pid(args.parent_pid)
|
|
84
90
|
python_folder = os.path.abspath(os.path.join('python', 'launcher_env'))
|
|
85
91
|
kill_process_by_path(python_folder)
|
|
86
|
-
if self.install_dependencies('launcher_env'):
|
|
87
|
-
logger.debug('update launcher_env dependencies success')
|
|
88
|
-
self.launcher_config['launcher_version'] = self.app_config.get('version')
|
|
89
|
-
|
|
90
|
-
copy_exe_files(os.path.join('repo', self.launcher_config['launcher_version']), os.getcwd())
|
|
91
|
-
clean_repo('repo', [self.app_config.get("version")])
|
|
92
92
|
|
|
93
93
|
def load_current_ver(self):
|
|
94
94
|
path = os.path.join('repo', self.version)
|
|
@@ -97,13 +97,6 @@ class GitUpdater:
|
|
|
97
97
|
def log_handler(self, level, message):
|
|
98
98
|
communicate.log.emit(level, message)
|
|
99
99
|
|
|
100
|
-
def handle_log(self, level, message):
|
|
101
|
-
if 'Window has fully displayed' in message:
|
|
102
|
-
logger.info(f'start success, exit launcher')
|
|
103
|
-
self.set_start_success()
|
|
104
|
-
self.exit_event.set()
|
|
105
|
-
QApplication.quit()
|
|
106
|
-
|
|
107
100
|
def get_current_profile(self):
|
|
108
101
|
return next((obj for obj in self.launch_profiles if obj['name'] == self.launcher_config.get('profile_name')),
|
|
109
102
|
None)
|
|
@@ -121,7 +114,6 @@ class GitUpdater:
|
|
|
121
114
|
return
|
|
122
115
|
|
|
123
116
|
if not self.log_tailer:
|
|
124
|
-
communicate.log.connect(self.handle_log)
|
|
125
117
|
self.log_tailer = LogTailer(os.path.join('logs', 'ok-script.log'), self.exit_event, self.log_handler)
|
|
126
118
|
self.log_tailer.start()
|
|
127
119
|
logger.info('start log tailer')
|
|
@@ -474,12 +466,11 @@ def get_version_text(lts, version, date, logs):
|
|
|
474
466
|
return text
|
|
475
467
|
|
|
476
468
|
|
|
477
|
-
def
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
time.sleep(1)
|
|
469
|
+
def wait_kill_pid(pid):
|
|
470
|
+
process = psutil.Process(pid)
|
|
471
|
+
process.terminate()
|
|
472
|
+
process.wait(timeout=30)
|
|
473
|
+
logger.info(f'kill process {pid} exists {psutil.pid_exists(pid)}')
|
|
483
474
|
|
|
484
475
|
|
|
485
476
|
def kill_process_by_path(exe_path):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ok-script-0.0.199 → ok-script-0.0.201}/ok/capture/windows/DesktopDuplicationCaptureMethod.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Graphics/DirectX/Direct3D11/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ok-script-0.0.199 → ok-script-0.0.201}/ok/rotypes/Windows/Security/Cryptography/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|