diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d5173af..b51eef6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,7 +31,7 @@ jobs: Write-Output "::endgroup::" - name: build - run: pyinstaller --onefile --noconsole --exclude torch --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/CTkMessagebox;CTkMessagebox" --icon resources/logo.ico OSC-SRTC.py + run: pyinstaller --onefile --noconsole --exclude torch --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/CTkMessagebox;CTkMessagebox" --icon resources/logo.ico --splash resources/srtc.png OSC-SRTC.py - name: upload uses: actions/upload-artifact@v1 @@ -42,6 +42,7 @@ jobs: release: needs: [windows-build] runs-on: ubuntu-latest + permissions: write-all steps: - name: Download Windows diff --git a/.github/workflows/test_release.yaml b/.github/workflows/test_release.yaml index c3c44e9..24c72c6 100644 --- a/.github/workflows/test_release.yaml +++ b/.github/workflows/test_release.yaml @@ -31,7 +31,7 @@ jobs: Write-Output "::endgroup::" - name: build - run: pyinstaller --onefile --noconsole --exclude torch --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/CTkMessagebox;CTkMessagebox" --icon resources/logo.ico OSC-SRTC.py + run: pyinstaller --onefile --noconsole --exclude torch --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/CTkMessagebox;CTkMessagebox" --icon resources/logo.ico --splash resources/srtc.png OSC-SRTC.py - name: upload uses: actions/upload-artifact@v1 @@ -42,6 +42,7 @@ jobs: release: needs: [windows-build] runs-on: ubuntu-latest + permissions: write-all steps: - name: Download Windows diff --git a/OSC-SRTC.py b/OSC-SRTC.py index 7613c51..c7d73a8 100644 --- a/OSC-SRTC.py +++ b/OSC-SRTC.py @@ -1,6 +1,7 @@ import threading import time +import pyi_splash from modules.SRTC_Utils import * from modules.SRTC_GUI import SRTC_GUI from modules.SRTC_Recognizer import SRTC_Recognizer @@ -82,6 +83,7 @@ def initialize(): Extension.start_server() OSC.start_server() + pyi_splash.close() GUI.mainloop() def main_thread(): diff --git a/modules/SRTC_Translator.py b/modules/SRTC_Translator.py index 91ea418..f8c786a 100644 --- a/modules/SRTC_Translator.py +++ b/modules/SRTC_Translator.py @@ -1,3 +1,4 @@ +import json from googletrans import Translator import deepl import urllib diff --git a/resources/srtc.png b/resources/srtc.png new file mode 100644 index 0000000..adefee4 Binary files /dev/null and b/resources/srtc.png differ