Compare commits

..

1 Commits

Author SHA1 Message Date
dd00ba11c8 Fix missing depends in deb package. Close #587 2025-11-01 12:04:14 +08:00
4 changed files with 10 additions and 30 deletions

View File

@@ -143,7 +143,7 @@ jobs:
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1
dart pub global activate flutter_to_debian
dart pub global activate flutter_to_debian --source git https://github.com/venera-app/flutter_to_debian.git
- run: python3 debian/build.py x64
- run: dart run flutter_to_arch
- run: |
@@ -171,7 +171,7 @@ jobs:
flutter pub get
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1
dart pub global activate flutter_to_debian
dart pub global activate flutter_to_debian --source git https://github.com/venera-app/flutter_to_debian.git
- name: "Patch font"
run: |
dart run patch/font.dart

View File

@@ -1245,15 +1245,6 @@ class _LoginPageState extends State<_LoginPage> {
if (widget.config.checkLoginStatus != null &&
widget.config.checkLoginStatus!(url, title)) {
var cookies = (await c.getCookies(url)) ?? [];
var localStorageItems = await c.webStorage.localStorage.getItems();
var mappedLocalStorage = <String, dynamic>{};
for (var item in localStorageItems) {
if (item.key != null) {
mappedLocalStorage[item.key!] = item.value;
}
}
widget.source.data['_localStorage'] = mappedLocalStorage;
await widget.source.saveData();
SingleInstanceCookieJar.instance?.saveFromResponse(
Uri.parse(url),
cookies,
@@ -1315,20 +1306,6 @@ class _LoginPageState extends State<_LoginPage> {
Uri.parse(url),
cookies,
);
var localStorageJson = await webview.evaluateJavascript(
"JSON.stringify(window.localStorage);",
);
var localStorage = <String, dynamic>{};
try {
var decoded = jsonDecode(localStorageJson ?? '');
if (decoded is Map<String, dynamic>) {
localStorage = decoded;
}
} catch (e) {
Log.error("ComicSourcePage", "Failed to parse localStorage JSON\n$e");
}
widget.source.data['_localStorage'] = localStorage;
await widget.source.saveData();
success = true;
widget.config.onLoginWithWebviewSuccess?.call();
webview.close();

View File

@@ -478,10 +478,11 @@ packages:
flutter_to_debian:
dependency: "direct dev"
description:
name: flutter_to_debian
sha256: d23534407334b331ce20fbaa8395b9ecc255d0c047136b8998715f36933ee696
url: "https://pub.dev"
source: hosted
path: "."
ref: HEAD
resolved-ref: "3777c91b6b1cc0b7c03357c67ca216d4313c3db5"
url: "https://github.com/venera-app/flutter_to_debian.git"
source: git
version: "2.0.2"
flutter_web_plugins:
dependency: transitive

View File

@@ -93,7 +93,9 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^5.0.0
flutter_to_arch: ^1.0.1
flutter_to_debian: ^2.0.2
flutter_to_debian:
git:
url: https://github.com/venera-app/flutter_to_debian.git
archive: any
flutter: