Skip to content

Commit

Permalink
Add builds for linux and apple arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanBorislavovDimitrov committed Oct 2, 2023
1 parent 6e19938 commit b77c656
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ multiapps-plugin.win64.exe
multiapps-plugin.linux32
multiapps-plugin.linux64
multiapps-plugin.osx
multiapps-plugin.linuxarm64
multiapps-plugin.osxarm64
multiapps-plugin-static.linux32
multiapps-plugin-static.linux64
multiapps-plugin-static.linuxarm64
multiapps-plugin-static.osx
multiapps-plugin-static.osxarm64
go.sum
*.exe

10 changes: 9 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,35 @@ PLUGIN_NAME_WIN_32=multiapps-plugin.win32.exe
PLUGIN_NAME_WIN_64=multiapps-plugin.win64.exe
PLUGIN_NAME_LINUX_32=multiapps-plugin.linux32
PLUGIN_NAME_LINUX_64=multiapps-plugin.linux64
PLUGIN_NAME_LINUX_ARM64=multiapps-plugin.linuxarm64
PLUGIN_NAME_OSX=multiapps-plugin.osx
PLUGIN_NAME_APPLE_ARM64=multiapps-plugin.osxarm64

PLUGIN_NAME_STATIC_WIN_32=multiapps-plugin-static.win32.exe
PLUGIN_NAME_STATIC_WIN_64=multiapps-plugin-static.win64.exe
PLUGIN_NAME_STATIC_LINUX_32=multiapps-plugin-static.linux32
PLUGIN_NAME_STATIC_LINUX_64=multiapps-plugin-static.linux64
PLUGIN_NAME_STATIC_LINUX_ARM64=multiapps-plugin-static.linuxarm64
PLUGIN_NAME_STATIC_OSX=multiapps-plugin-static.osx
PLUGIN_NAME_STATIC_APPLE_ARM64=multiapps-plugin-static.osxarm64

version=$(<cfg/VERSION)
build $version linux 386 $PLUGIN_NAME_LINUX_32
build $version linux amd64 $PLUGIN_NAME_LINUX_64
build $version linux arm64 $PLUGIN_NAME_LINUX_ARM64
build $version windows 386 $PLUGIN_NAME_WIN_32
build $version windows amd64 $PLUGIN_NAME_WIN_64
build $version darwin amd64 $PLUGIN_NAME_OSX
build $version darwin arm64 $PLUGIN_NAME_APPLE_ARM64

buildstatic $version linux 386 $PLUGIN_NAME_STATIC_LINUX_32
buildstatic $version linux amd64 $PLUGIN_NAME_STATIC_LINUX_64
buildstatic $version linux arm64 $PLUGIN_NAME_STATIC_LINUX_ARM64
buildstatic $version windows 386 $PLUGIN_NAME_STATIC_WIN_32
buildstatic $version windows amd64 $PLUGIN_NAME_STATIC_WIN_64
buildstatic $version darwin amd64 $PLUGIN_NAME_STATIC_OSX
buildstatic $version darwin arm64 $PLUGIN_NAME_STATIC_APPLE_ARM64

mkdir $BUILD_FOLDER -p
mkdir -p $BUILD_FOLDER
createBuildMetadataFiles $version $BUILD_FOLDER
movePluginsToBuildFolder $BUILD_FOLDER

0 comments on commit b77c656

Please sign in to comment.