From 4c9f403330a0aa41bf6f16545e6a17849d3ff6f4 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 29 Mar 2017 22:34:28 +0800 Subject: add make osxpkg script --- scripts/make_deb | 29 +++++++++++++++++++++++++++++ scripts/make_osxpkg | 29 +++++++++++++++++++++++++++++ scripts/makedeb | 29 ----------------------------- 3 files changed, 58 insertions(+), 29 deletions(-) create mode 100755 scripts/make_deb create mode 100755 scripts/make_osxpkg delete mode 100755 scripts/makedeb diff --git a/scripts/make_deb b/scripts/make_deb new file mode 100755 index 000000000..336ff25d1 --- /dev/null +++ b/scripts/make_deb @@ -0,0 +1,29 @@ +#!/bin/bash + +# install fpm +# apt-get install ruby ruby-dev rubygems gcc make +# gem install --no-ri --no-rdoc fpm + +# version +version=2.1.3 + +# build xmake core +cd ./core +make f DEBUG=n +make r +cd - + +# make xmake wrapper +echo "#/!bin/bash +export XMAKE_PROGRAM_DIR=/usr/local/share/xmake +/usr/local/share/xmake/xmake \"\$@\" +" > /tmp/xmake.sh +chmod 755 /tmp/xmake.sh + +# make dep package using fpm +fpm -s dir -t deb -n xmake -v $version -m "" --description="A make-like build utility based on Lua" --license=LICENSE.md \ + xmake=/usr/local/share/ \ + core/bin/demo.pkg/bin/linux/x86_64/demo.b=/usr/local/share/xmake/xmake \ + /tmp/xmake.sh=/usr/local/bin/xmake + + diff --git a/scripts/make_osxpkg b/scripts/make_osxpkg new file mode 100755 index 000000000..d19e9c6cb --- /dev/null +++ b/scripts/make_osxpkg @@ -0,0 +1,29 @@ +#!/bin/bash + +# install fpm +# brew install gnu-tar +# gem install --no-ri --no-rdoc fpm + +# version +version=2.1.3 + +# build xmake core +cd ./core +make f DEBUG=n +make r +cd - + +# make xmake wrapper +echo "#/!bin/bash +export XMAKE_PROGRAM_DIR=/usr/local/share/xmake +/usr/local/share/xmake/xmake \"\$@\" +" > /tmp/xmake.sh +chmod 755 /tmp/xmake.sh + +# make dep package using fpm +fpm -s dir -t osxpkg -n xmake -v $version -m "" --description="A make-like build utility based on Lua" --license=LICENSE.md \ + xmake=/usr/local/share/ \ + core/bin/demo.pkg/bin/macosx/x86_64/demo.b=/usr/local/share/xmake/xmake \ + /tmp/xmake.sh=/usr/local/bin/xmake + + diff --git a/scripts/makedeb b/scripts/makedeb deleted file mode 100755 index 336ff25d1..000000000 --- a/scripts/makedeb +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# install fpm -# apt-get install ruby ruby-dev rubygems gcc make -# gem install --no-ri --no-rdoc fpm - -# version -version=2.1.3 - -# build xmake core -cd ./core -make f DEBUG=n -make r -cd - - -# make xmake wrapper -echo "#/!bin/bash -export XMAKE_PROGRAM_DIR=/usr/local/share/xmake -/usr/local/share/xmake/xmake \"\$@\" -" > /tmp/xmake.sh -chmod 755 /tmp/xmake.sh - -# make dep package using fpm -fpm -s dir -t deb -n xmake -v $version -m "" --description="A make-like build utility based on Lua" --license=LICENSE.md \ - xmake=/usr/local/share/ \ - core/bin/demo.pkg/bin/linux/x86_64/demo.b=/usr/local/share/xmake/xmake \ - /tmp/xmake.sh=/usr/local/bin/xmake - - -- cgit v1.3.1