mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Merge pull request #15 from boa-z/master
Enhancements for accounts_page and macOS build
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -27,16 +27,16 @@ jobs:
|
|||||||
- name: Build Flutter macOS App
|
- name: Build Flutter macOS App
|
||||||
run: flutter build macos --release
|
run: flutter build macos --release
|
||||||
|
|
||||||
|
# Step 3: Create the DMG file
|
||||||
# Step 4: Create the DMG file
|
|
||||||
- name: Create DMG
|
- name: Create DMG
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
hdiutil create -volname "venera" -srcfolder build/macos/Build/Products/Release/venera.app -ov -format UDZO "dist/venera.dmg"
|
mkdir -p dist/dmg_contents
|
||||||
|
cp -R build/macos/Build/Products/Release/venera.app dist/dmg_contents/
|
||||||
|
ln -s /Applications dist/dmg_contents/Applications
|
||||||
|
hdiutil create -volname "venera" -srcfolder dist/dmg_contents -ov -format UDZO "dist/venera.dmg"
|
||||||
|
|
||||||
|
# Step 4: Attach and upload artifacts (optional)
|
||||||
|
|
||||||
# Step 8: Attach and upload artifacts (optional)
|
|
||||||
- name: Upload DMG
|
- name: Upload DMG
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@@ -173,6 +173,7 @@ class _LoginPageState extends State<_LoginPage> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
constraints: const BoxConstraints(maxWidth: 400),
|
constraints: const BoxConstraints(maxWidth: 400),
|
||||||
|
child: AutofillGroup(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
@@ -188,6 +189,7 @@ class _LoginPageState extends State<_LoginPage> {
|
|||||||
onChanged: (s) {
|
onChanged: (s) {
|
||||||
username = s;
|
username = s;
|
||||||
},
|
},
|
||||||
|
autofillHints: const [AutofillHints.username],
|
||||||
).paddingBottom(16),
|
).paddingBottom(16),
|
||||||
if (widget.config.cookieFields == null)
|
if (widget.config.cookieFields == null)
|
||||||
TextField(
|
TextField(
|
||||||
@@ -201,6 +203,7 @@ class _LoginPageState extends State<_LoginPage> {
|
|||||||
password = s;
|
password = s;
|
||||||
},
|
},
|
||||||
onSubmitted: (s) => login(),
|
onSubmitted: (s) => login(),
|
||||||
|
autofillHints: const [AutofillHints.password],
|
||||||
).paddingBottom(16),
|
).paddingBottom(16),
|
||||||
for (var field in widget.config.cookieFields ?? <String>[])
|
for (var field in widget.config.cookieFields ?? <String>[])
|
||||||
TextField(
|
TextField(
|
||||||
@@ -254,6 +257,7 @@ class _LoginPageState extends State<_LoginPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -100,12 +100,12 @@ class _AppWebviewState extends State<AppWebview> {
|
|||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
child: Text("Open in browser".tl),
|
child: Text("Open in browser".tl),
|
||||||
onTap: () async =>
|
onTap: () async =>
|
||||||
launchUrlString((await controller?.getUrl())!.path),
|
launchUrlString((await controller?.getUrl())!.toString()),
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
child: Text("Copy link".tl),
|
child: Text("Copy link".tl),
|
||||||
onTap: () async => Clipboard.setData(ClipboardData(
|
onTap: () async => Clipboard.setData(ClipboardData(
|
||||||
text: (await controller?.getUrl())!.path)),
|
text: (await controller?.getUrl())!.toString())),
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
child: Text("Reload".tl),
|
child: Text("Reload".tl),
|
||||||
|
Reference in New Issue
Block a user