mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 07:07:32 -04:00
chore: bump version 0.1.4 (#2455)
This commit is contained in:
parent
5d0a349236
commit
a2e9d63f63
8 changed files with 34 additions and 427 deletions
16
CHANGELOG.md
16
CHANGELOG.md
|
@ -1,5 +1,21 @@
|
||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
|
## Version 0.1.4 - 04/05/2023
|
||||||
|
|
||||||
|
### New features
|
||||||
|
- Use AppFlowy’s calendar views to plan and manage tasks and deadlines.
|
||||||
|
- Writing can be improved with the help of OpenAI.
|
||||||
|
|
||||||
|
## Version 0.1.3 - 24/04/2023
|
||||||
|
|
||||||
|
### New features
|
||||||
|
- Launch the official Dark Mode.
|
||||||
|
- Customize the font color and highlight color by setting a hex color value and an opacity level.
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
- Fix: the slash menu can be triggered by all other keyboards than English.
|
||||||
|
- Fix: convert the single asterisk to italic text and the double asterisks to bold text.
|
||||||
|
|
||||||
## Version 0.1.2 - 03/28/2023
|
## Version 0.1.2 - 03/28/2023
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
|
@ -23,7 +23,7 @@ CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
||||||
CARGO_MAKE_CRATE_FS_NAME = "dart_ffi"
|
CARGO_MAKE_CRATE_FS_NAME = "dart_ffi"
|
||||||
CARGO_MAKE_CRATE_NAME = "dart-ffi"
|
CARGO_MAKE_CRATE_NAME = "dart-ffi"
|
||||||
LIB_NAME = "dart_ffi"
|
LIB_NAME = "dart_ffi"
|
||||||
CURRENT_APP_VERSION = "0.1.3"
|
CURRENT_APP_VERSION = "0.1.4"
|
||||||
FLUTTER_DESKTOP_FEATURES = "dart,rev-sqlite"
|
FLUTTER_DESKTOP_FEATURES = "dart,rev-sqlite"
|
||||||
PRODUCT_NAME = "AppFlowy"
|
PRODUCT_NAME = "AppFlowy"
|
||||||
# CRATE_TYPE: https://doc.rust-lang.org/reference/linkage.html
|
# CRATE_TYPE: https://doc.rust-lang.org/reference/linkage.html
|
||||||
|
|
|
@ -588,6 +588,7 @@
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/../Frameworks",
|
"@executable_path/../Frameworks",
|
||||||
);
|
);
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.appflowy.macos;
|
PRODUCT_BUNDLE_IDENTIFIER = com.appflowy.macos;
|
||||||
PRODUCT_NAME = AppFlowy;
|
PRODUCT_NAME = AppFlowy;
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
|
|
@ -45,10 +45,10 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: appflowy_editor
|
name: appflowy_editor
|
||||||
sha256: a1dbca3d7d33f4669f1d44bfa1e06b6646f46726c219921b8a59d9ee22bf252d
|
sha256: "5371e8aa78e6a5e5b5c958b1450958689755b5fd0e9862312ca423f7c0da9fcc"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.9"
|
version: "0.1.10"
|
||||||
appflowy_popover:
|
appflowy_popover:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 0.1.2
|
version: 0.1.4
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.19.0 <3.0.0"
|
sdk: ">=2.19.0 <3.0.0"
|
||||||
|
|
|
@ -1,419 +1 @@
|
||||||
{
|
{"document":{"type":"editor","children":[{"type":"cover"},{"type":"text","attributes":{"subtype":"heading","heading":"h1"},"delta":[{"insert":"Welcome to AppFlowy!"}]},{"type":"text","attributes":{"subtype":"heading","heading":"h2"},"delta":[{"insert":"Here are the basics"}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"Click anywhere and just start typing."}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":false},"delta":[{"insert":"Highlight ","attributes":{"backgroundColor":"0x4dffeb3b"}},{"insert":"any text, and use the editing menu to "},{"insert":"style","attributes":{"italic":true}},{"insert":" "},{"insert":"your","attributes":{"bold":true}},{"insert":" "},{"insert":"writing","attributes":{"underline":true}},{"insert":" "},{"insert":"however","attributes":{"code":true}},{"insert":" you "},{"insert":"like.","attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"As soon as you type "},{"insert":"/","attributes":{"code":true,"color":"0xff00b5ff"}},{"insert":" a menu will pop up. Select "},{"insert":"different types","attributes":{"backgroundColor":"0x4d9c27b0"}},{"insert":" of content blocks you can add."}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"Type "},{"insert":"/","attributes":{"code":true}},{"insert":" followed by "},{"insert":"/bullet","attributes":{"code":true}},{"insert":" or "},{"insert":"/num","attributes":{"code":true}},{"insert":" to create a list.","attributes":{"code":false}}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":true},"delta":[{"insert":"Click "},{"insert":"+ New Page ","attributes":{"code":true}},{"insert":"button at the bottom of your sidebar to add a new page."}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"Click "},{"insert":"+","attributes":{"code":true}},{"insert":" next to any page title in the sidebar to "},{"insert":"quickly","attributes":{"color":"0xff8427e0"}},{"insert":" add a new subpage, "},{"insert":"Document","attributes":{"code":true}},{"insert":", ","attributes":{"code":false}},{"insert":"Grid","attributes":{"code":true}},{"insert":", or ","attributes":{"code":false}},{"insert":"Kanban Board","attributes":{"code":true}},{"insert":".","attributes":{"code":false}}]},{"type":"text","delta":[]},{"type":"divider"},{"type":"text","attributes":{"checkbox":null},"delta":[]},{"type":"text","attributes":{"subtype":"heading","checkbox":null,"heading":"h2"},"delta":[{"insert":"Keyboard shortcuts, markdown, and code block"}]},{"type":"text","attributes":{"subtype":"number-list","number":1,"heading":null},"delta":[{"insert":"Keyboard shortcuts "},{"insert":"guide","attributes":{"href":"https://appflowy.gitbook.io/docs/essential-documentation/shortcuts"}},{"retain":1,"attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"subtype":"number-list","number":2,"heading":null},"delta":[{"insert":"Markdown "},{"insert":"reference","attributes":{"href":"https://appflowy.gitbook.io/docs/essential-documentation/markdown"}},{"retain":1,"attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"number":3,"subtype":"number-list"},"delta":[{"insert":"Type "},{"insert":"/code","attributes":{"code":true}},{"insert":" to insert a code block","attributes":{"code":false}}]},{"type":"text","attributes":{"subtype":"code_block","number":3,"heading":null,"number-list":null,"theme":"vs","language":"rust"},"delta":[{"insert":"// This is the main function.\nfn main() {\n // Print text to the console.\n println!(\"Hello World!\");\n}"},{"retain":1,"attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"checkbox":null},"delta":[]},{"type":"text","attributes":{"subtype":"heading","checkbox":null,"heading":"h2"},"delta":[{"insert":"Have a question❓"}]},{"type":"text","attributes":{"subtype":"quote"},"delta":[{"insert":"Click "},{"insert":"?","attributes":{"code":true}},{"insert":" at the bottom right for help and support."}]},{"type":"text","delta":[]},{"type":"callout","children":[{"type":"text","delta":[]},{"type":"text","attributes":{"subtype":"heading","heading":"h2"},"delta":[{"insert":"Like AppFlowy? Follow us:"}]},{"type":"text","attributes":{"subtype":"bulleted-list"},"delta":[{"insert":"GitHub","attributes":{"href":"https://github.com/AppFlowy-IO/AppFlowy"}}]},{"type":"text","attributes":{"subtype":"bulleted-list"},"delta":[{"insert":"Twitter","attributes":{"href":"https://twitter.com/appflowy"}},{"insert":": @appflowy"}]},{"type":"text","attributes":{"subtype":"bulleted-list"},"delta":[{"insert":"Newsletter","attributes":{"href":"https://blog-appflowy.ghost.io/"}}]}],"attributes":{"emoji":"🥰"}},{"type":"text","delta":[]},{"type":"text","attributes":{"subtype":null,"heading":null},"delta":[]},{"type":"text","attributes":{"subtype":null,"heading":null},"delta":[]}]}}
|
||||||
"document": {
|
|
||||||
"type": "editor",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "heading",
|
|
||||||
"heading": "h1"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "🌟 Welcome to AppFlowy!"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "heading",
|
|
||||||
"heading": "h2"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Here are the basics"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "checkbox",
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Click anywhere and just start typing."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "checkbox",
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Highlight",
|
|
||||||
"attributes": {
|
|
||||||
"backgroundColor": "0x6000BCF0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " any text, and use the editing menu to "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "style",
|
|
||||||
"attributes": {
|
|
||||||
"italic": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "your",
|
|
||||||
"attributes": {
|
|
||||||
"bold": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "writing",
|
|
||||||
"attributes": {
|
|
||||||
"underline": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "however",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " you "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "like.",
|
|
||||||
"attributes": {
|
|
||||||
"strikethrough": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "checkbox",
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "As soon as you type "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "/",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " a menu will pop up. Select different types of content blocks you can add."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "checkbox",
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Type "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "/",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " followed by "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "/bullet",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " or "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "/c.",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "checkbox",
|
|
||||||
"checkbox": true
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Click "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "+ New Page ",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "button at the bottom of your sidebar to add a new page."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "checkbox",
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Click "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "+",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " next to any page title in the sidebar to quickly add a new subpage."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "heading",
|
|
||||||
"checkbox": null,
|
|
||||||
"heading": "h2"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Markdown"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "number-list",
|
|
||||||
"number": 1,
|
|
||||||
"heading": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Heading "
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "number-list",
|
|
||||||
"number": 2
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "bold text",
|
|
||||||
"attributes": {
|
|
||||||
"bold": true,
|
|
||||||
"defaultFormatting": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "number-list",
|
|
||||||
"number": 3
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "italicized text",
|
|
||||||
"attributes": {
|
|
||||||
"italic": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "number-list",
|
|
||||||
"number": 4,
|
|
||||||
"number-list": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Ordered List"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"number": 5,
|
|
||||||
"subtype": "number-list"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "code",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"number": 6,
|
|
||||||
"subtype": "number-list"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Strikethrough",
|
|
||||||
"attributes": {
|
|
||||||
"strikethrough": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"retain": 1,
|
|
||||||
"attributes": {
|
|
||||||
"strikethrough": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"checkbox": null
|
|
||||||
},
|
|
||||||
"delta": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "heading",
|
|
||||||
"checkbox": null,
|
|
||||||
"heading": "h2"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Have a question?"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "quote"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Click "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": "?",
|
|
||||||
"attributes": {
|
|
||||||
"code": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"insert": " at the bottom right for help and support."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"delta": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "heading",
|
|
||||||
"heading": "h2"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Like AppFlowy? Follow us:"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "bulleted-list",
|
|
||||||
"quote": null
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "GitHub",
|
|
||||||
"attributes": {
|
|
||||||
"href": "https://github.com/AppFlowy-IO/AppFlowy"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "bulleted-list"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Twitter: @appflowy"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": "bulleted-list"
|
|
||||||
},
|
|
||||||
"delta": [
|
|
||||||
{
|
|
||||||
"insert": "Newsletter",
|
|
||||||
"attributes": {
|
|
||||||
"href": "https://blog-appflowy.ghost.io/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"attributes": {
|
|
||||||
"subtype": null,
|
|
||||||
"heading": null
|
|
||||||
},
|
|
||||||
"delta": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -23,6 +23,11 @@ args[1]: The appflowy version to be built (github ref_name).
|
||||||
assert(await repositoryRoot.exists(),
|
assert(await repositoryRoot.exists(),
|
||||||
'$repositoryRoot is an invalid directory. Please try again with a valid directory.\n\n$help');
|
'$repositoryRoot is an invalid directory. Please try again with a valid directory.\n\n$help');
|
||||||
final appVersion = args[1];
|
final appVersion = args[1];
|
||||||
await _BuildTool(repositoryRoot: repositoryRoot.path, appVersion: appVersion)
|
String? arch;
|
||||||
.run();
|
if (args.length > 2) arch = args[2];
|
||||||
|
await _BuildTool(
|
||||||
|
repositoryRoot: repositoryRoot.path,
|
||||||
|
appVersion: appVersion,
|
||||||
|
arch: arch,
|
||||||
|
).run();
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,10 +14,12 @@ class _BuildTool {
|
||||||
const _BuildTool({
|
const _BuildTool({
|
||||||
required this.repositoryRoot,
|
required this.repositoryRoot,
|
||||||
required this.appVersion,
|
required this.appVersion,
|
||||||
|
this.arch,
|
||||||
});
|
});
|
||||||
|
|
||||||
final String repositoryRoot;
|
final String repositoryRoot;
|
||||||
final String appVersion;
|
final String appVersion;
|
||||||
|
final String? arch;
|
||||||
|
|
||||||
String get projectRoot =>
|
String get projectRoot =>
|
||||||
[repositoryRoot, 'appflowy_flutter'].join(Platform.pathSeparator);
|
[repositoryRoot, 'appflowy_flutter'].join(Platform.pathSeparator);
|
||||||
|
@ -30,8 +32,9 @@ class _BuildTool {
|
||||||
|
|
||||||
Future<String> get _commandForOS async {
|
Future<String> get _commandForOS async {
|
||||||
// Check the operating system and CPU architecture
|
// Check the operating system and CPU architecture
|
||||||
var os = Platform.operatingSystem;
|
final os = Platform.operatingSystem;
|
||||||
var arch = Platform.isMacOS ? await _architecture : Platform.localHostname;
|
final arch = this.arch ??
|
||||||
|
(Platform.isMacOS ? await _architecture : Platform.localHostname);
|
||||||
|
|
||||||
// Determine the appropriate command based on the OS and architecture
|
// Determine the appropriate command based on the OS and architecture
|
||||||
if (os == 'windows') {
|
if (os == 'windows') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue