From f12cb55bbcda2a15bebf42dd794f6be2a720174b Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 6 Nov 2024 08:51:20 +0800 Subject: [PATCH 1/3] update windows build script --- pubspec.yaml | 2 +- windows/build.iss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index c71cbf9..119c78f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: flutter_localizations: sdk: flutter intl: any - window_manager: ^0.4.2 + window_manager: ^0.4.3 sqlite3: any sqlite3_flutter_libs: any flutter_qjs: diff --git a/windows/build.iss b/windows/build.iss index 905d0cf..be520ab 100644 --- a/windows/build.iss +++ b/windows/build.iss @@ -55,6 +55,7 @@ Source: "{#RootPath}\build\windows\x64\runner\Release\screen_retriever_plugin.dl Source: "{#RootPath}\build\windows\x64\runner\Release\window_manager_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\zip_flutter.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\rhttp.dll"; DestDir: "{app}"; Flags: ignoreversion +Source: "{#RootPath}\build\windows\x64\runner\Release\lodepng_flutter.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files From 3d7f30af0093ae204f2ca8d4da911b6c89f604e3 Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 6 Nov 2024 08:53:57 +0800 Subject: [PATCH 2/3] update .gitignore --- .gitignore | 2 +- add_translation.py | 31 ------------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 add_translation.py diff --git a/.gitignore b/.gitignore index cca26ba..291ef60 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,4 @@ app.*.map.json /android/app/profile /android/app/release -./add_translation.py \ No newline at end of file +add_translation.py \ No newline at end of file diff --git a/add_translation.py b/add_translation.py deleted file mode 100644 index 3fa5fb8..0000000 --- a/add_translation.py +++ /dev/null @@ -1,31 +0,0 @@ -import re -import json - -path='./assets/translation.json' - -with open(path, 'r',encoding='utf-8') as file: - translations=json.load(file) - - -while True: - line=input() - if line=="q": - break - words=line.split('-') - if len(words)!=3: - print("invalid entry:",line,"(len(words) != 3)" - continue - en=words[0] - cn=words[1] - tw=words[2] - translations["zh_CN"][en]=cn - translations["zh_TW"][en]=tw - - -with open(path, 'w',encoding='utf-8') as file: - json.dump(translations, file, indent=2,ensure_ascii=False) - - - - - From ae80715db1b187f6ce281aecb733c5579699b709 Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 6 Nov 2024 08:57:06 +0800 Subject: [PATCH 3/3] update windows build script --- windows/build.iss | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/build.iss b/windows/build.iss index be520ab..8061f10 100644 --- a/windows/build.iss +++ b/windows/build.iss @@ -52,6 +52,7 @@ Source: "{#RootPath}\build\windows\x64\runner\Release\WebView2Loader.dll"; DestD Source: "{#RootPath}\build\windows\x64\runner\Release\share_plus_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\url_launcher_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\screen_retriever_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion +Source: "{#RootPath}\build\windows\x64\runner\Release\screen_retriever_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\window_manager_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\zip_flutter.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "{#RootPath}\build\windows\x64\runner\Release\rhttp.dll"; DestDir: "{app}"; Flags: ignoreversion