diff options
| author | ruki <[email protected]> | 2017-03-29 22:43:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-29 22:44:10 +0800 |
| commit | 95c0752c2574edcd465d4f790e22ede96d8feb56 (patch) | |
| tree | 566a67f908663beda042da79a826edf5f14116ae /scripts/make_osxpkg | |
| parent | 4c9f403330a0aa41bf6f16545e6a17849d3ff6f4 (diff) | |
add make rpm script
Diffstat (limited to 'scripts/make_osxpkg')
| -rwxr-xr-x | scripts/make_osxpkg | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/make_osxpkg b/scripts/make_osxpkg index d19e9c6cb..c9d4ae6af 100755 --- a/scripts/make_osxpkg +++ b/scripts/make_osxpkg @@ -7,6 +7,12 @@ # version version=2.1.3 +# arch +arch=i386 +if [ `getconf LONG_BIT` == "64" ]; then + arch=x86_64 +fi + # build xmake core cd ./core make f DEBUG=n @@ -23,7 +29,7 @@ chmod 755 /tmp/xmake.sh # make dep package using fpm fpm -s dir -t osxpkg -n xmake -v $version -m "<[email protected]>" --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 \ + core/bin/demo.pkg/bin/macosx/$arch/demo.b=/usr/local/share/xmake/xmake \ /tmp/xmake.sh=/usr/local/bin/xmake |
