improving standalone app creation #1
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the issue where FlowTimer would build and run from command line on Apple Silicon Macs but fail to start when installed in the Applications folder and launched via Spotlight.
Problem
The application was experiencing startup failures when moved to
/Applications/
due to several issues in the macOS app bundle creation and launcher script:create-app.sh
was attempting to copy a non-existentlibJNativeHook.arm64.dylib
fileRoot Cause Analysis
Investigation revealed that native ARM64 libraries were actually already present:
com/github/kwhat/jnativehook/lib/darwin/arm64/libJNativeHook.dylib
META-INF/macos/arm64/
The real issue was the app bundle launcher script's inability to properly resolve paths and resources when launched from the Applications folder.
Solution
Enhanced App Bundle Creation (
create-app.sh
)LSMinimumSystemVersion
, accessibility descriptions, and app categoryRobust Launcher Script
Created a comprehensive launcher that handles Apple Silicon deployment:
Key Improvements
/tmp/flowtimer_debug.log
for troubleshootingValidation & Documentation
test-app-bundle.sh
performs comprehensive app bundle validationTesting
The app bundle now passes all validation tests:
Installation Process
Users can now successfully install on Apple Silicon:
This resolves the issue where the app icon would appear in Applications but the application wouldn't start when launched via Spotlight.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.