Back to Gephi

macOS NetBeans Platform Launcher

src/macosx-launcher/README.md

0.10.12.3 KB
Original Source
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

macOS NetBeans Platform Launcher

Native macOS NetBeans Platform launcher for app bundle. It wraps a call to Contents/Resources/gephi/gephi

  • Requires macOS with swift to build

Manually build with the following command:

shell
% swift build -c release --arch arm64

Then, run the two following commands to fix some erroneous rpath added automatically (more details here):

shell
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.

shell
cp .build/release/AppLauncher Binaries/AppLauncher_aarch64

Repeat the same operation for x86_64:

shell
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.