Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pack.sh Adding support to build for apple sillicon #237

Merged
merged 1 commit into from
Aug 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,33 @@ function pack-linux-arm64()
mv {*.deb,*.rpm} publish/
}

function pack-osx.11.0-arm64()
{
rm -rf ./*.app
rm -f ./*.zip

pushd $PKG_ROOT
cd ..
mv publish fvim_pkg
mkdir -p publish/Contents/
mv fvim_pkg publish/Contents/MacOS
mkdir -p publish/Contents/Resources/
popd
cp lib/fvim-osx-launcher $PKG_ROOT/Contents/MacOS/fvim-osx-launcher
cp images/icon.icns $PKG_ROOT/Contents/Resources/fvim.icns
cp lib/Info.plist $PKG_ROOT/Contents/Info.plist
cp icons-icns/* $PKG_ROOT/Contents/Resources/
rm -rf $PKG_ROOT/Contents/MacOS/icons

chmod +x $PKG_ROOT/Contents/MacOS/FVim
chmod +x $PKG_ROOT/Contents/MacOS/fvim-osx-launcher

mv $PKG_ROOT FVim.app
zip -r FVim.$VERSION.zip FVim.app
rm -rf FVim.app
mv FVim.$VERSION.zip publish/
}

function pack-osx-x64()
{
rm -rf ./*.app
Expand Down