Skip to content

Commit

Permalink
Merge pull request #237 from luxus/arm64
Browse files Browse the repository at this point in the history
pack.sh Adding support to build for apple sillicon
  • Loading branch information
Yatao Li authored Aug 15, 2022
2 parents b836b56 + f229f8e commit 33f9d5f
Showing 1 changed file with 27 additions and 0 deletions.
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

0 comments on commit 33f9d5f

Please sign in to comment.