feat(ui): 重构工作区交互与系统菜单 (#111)

This commit is contained in:
Realm
2026-08-27 00:01:03 +08:00
committed by Tom Cruise
parent b4551ee1cc
commit ee98a933e6
18 changed files with 1329 additions and 798 deletions
+9 -2
View File
@@ -9,6 +9,13 @@ CONTENTS_DIR="$APP_DIR/Contents"
MACOS_DIR="$CONTENTS_DIR/MacOS"
RESOURCES_DIR="$CONTENTS_DIR/Resources"
SIGN_IDENTITY="${SIGN_IDENTITY:--}"
APP_VERSION="${APP_VERSION:-$(sed -n 's/^version = "\([^"]*\)"/\1/p' "$ROOT_DIR/Cargo.toml" | head -n 1)}"
APP_BUILD_VERSION="${APP_BUILD_VERSION:-$APP_VERSION}"
if [[ -z "$APP_VERSION" ]]; then
echo "error: unable to read the package version from Cargo.toml" >&2
exit 1
fi
cd "$ROOT_DIR"
cargo build --release
@@ -40,9 +47,9 @@ cat > "$CONTENTS_DIR/Info.plist" <<EOF
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.0</string>
<string>$APP_VERSION</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$APP_BUILD_VERSION</string>
<key>LSMinimumSystemVersion</key>
<string>12.0</string>
<key>NSHighResolutionCapable</key>