src/macosx-launcher/README.md
Native macOS NetBeans Platform launcher for app bundle. It wraps a call to Contents/Resources/gephi/gephi
Manually build with the following command:
% swift build -c release --arch arm64
Then, run the two following commands to fix some erroneous rpath added automatically (more details here):
install_name_tool -delete_rpath /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx .build/release/AppLauncher
install_name_tool -delete_rpath /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx .build/release/AppLauncher
Finally, copy the binary to the right folder.
cp .build/release/AppLauncher Binaries/AppLauncher_aarch64
Repeat the same operation for x86_64:
swift build -c release --arch x86_64
install_name_tool -delete_rpath /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx .build/release/AppLauncher
install_name_tool -delete_rpath /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx .build/release/AppLauncher
cp .build/release/AppLauncher Binaries/AppLauncher_x64
Binaries are stored in the Binaries folder.