Skip to content

Commit

Permalink
Fix: workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soumt-r committed Jun 28, 2023
1 parent e32e58c commit 2e52b95
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,6 +42,7 @@ jobs:
release:
needs: [windows-build]
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Download Windows
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,6 +42,7 @@ jobs:
release:
needs: [windows-build]
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Download Windows
Expand Down
2 changes: 2 additions & 0 deletions OSC-SRTC.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -82,6 +83,7 @@ def initialize():
Extension.start_server()
OSC.start_server()

pyi_splash.close()
GUI.mainloop()

def main_thread():
Expand Down
1 change: 1 addition & 0 deletions modules/SRTC_Translator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from googletrans import Translator
import deepl
import urllib
Expand Down
Binary file added resources/srtc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2e52b95

Please sign in to comment.