Skip to content

Commit b589538

Browse files
committed
chore: clean up build process
1. Remove redundant executable files 2. Update build script with clearer instructions 3. Fix language switch text 4. Update .gitignore to exclude build artifacts
1 parent 68b2e08 commit b589538

File tree

6 files changed

+23
-14
lines changed

6 files changed

+23
-14
lines changed

BTCWatche

-170 KB
Binary file not shown.

BTCWatcher

-170 KB
Binary file not shown.

BTCWatcher.app/Contents/Info.plist

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleExecutable</key>
6-
<string>BTCWatcher</string>
7-
<key>CFBundleIconFile</key>
8-
<string>AppIcon</string>
95
<key>CFBundleIdentifier</key>
10-
<string>com.example.BTCWatcher</string>
6+
<string>com.example.BTCMenuBar</string>
117
<key>CFBundleName</key>
12-
<string>BTC Watcher</string>
8+
<string>BTCMenuBar</string>
139
<key>CFBundlePackageType</key>
1410
<string>APPL</string>
1511
<key>CFBundleShortVersionString</key>
1612
<string>1.0</string>
13+
<key>CFBundleVersion</key>
14+
<string>1</string>
1715
<key>LSMinimumSystemVersion</key>
1816
<string>13.0</string>
1917
<key>LSUIElement</key>
2018
<true/>
21-
<key>NSHighResolutionCapable</key>
22-
<true/>
2319
</dict>
2420
</plist>
352 Bytes
Binary file not shown.

build.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ echo "📦 Creating zip archive..."
4444
ditto -c -k --keepParent "$APP_BUNDLE" "$ZIP_NAME"
4545

4646
if [ $? -eq 0 ]; then
47-
echo "✅ Build complete! Created $ZIP_NAME"
48-
echo "📝 Next steps:"
49-
echo "1. Test the app: open $APP_BUNDLE"
50-
echo "2. If needed, fix permissions: xattr -cr $APP_BUNDLE"
51-
echo "3. Upload $ZIP_NAME to GitHub releases"
47+
echo "✅ Build complete!"
48+
echo "📝 To run the app:"
49+
echo "1. Double click $APP_BUNDLE"
50+
echo " or"
51+
echo "2. Run: open $APP_BUNDLE"
52+
echo ""
53+
echo "Note: Do not run the executable directly. Always use the app bundle."
5254
else
5355
echo "❌ Failed to create zip archive!"
5456
exit 1

main.swift

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
7171
• 多语言支持
7272
7373
由 chenwuai 开发
74-
"""]
74+
"""],
75+
"feedback": [true: "Feedback", false: "反馈"]
7576
]
7677

7778
func localized(_ key: String) -> String {
@@ -152,6 +153,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
152153

153154
// About menu item
154155
menu.addItem(NSMenuItem(title: localized("about"), action: #selector(showAbout), keyEquivalent: ""))
156+
157+
// Feedback menu item
158+
menu.addItem(NSMenuItem(title: localized("feedback"), action: #selector(openFeedback), keyEquivalent: ""))
159+
155160
menu.addItem(NSMenuItem(title: localized("quit"), action: #selector(NSApplication.terminate(_:)), keyEquivalent: "q"))
156161

157162
statusItem.menu = menu
@@ -370,6 +375,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
370375
alert.runModal()
371376
}
372377

378+
@objc func openFeedback() {
379+
if let url = URL(string: "https://github.com/chenchenwuai/btc-watcher/issues") {
380+
NSWorkspace.shared.open(url)
381+
}
382+
}
383+
373384
func handleApiError() {
374385
failedAttempts += 1
375386

0 commit comments

Comments
 (0)