diff options
| author | OpportunityLiu <[email protected]> | 2019-07-19 09:44:23 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-19 09:44:23 +0800 |
| commit | bcd6457fa98bab0dd220621754af8451f5a1850f (patch) | |
| tree | 5119801ca88b6ec42b74ebd77d485800706fe7cc /scripts/makeself | |
| parent | bb6a06dd886720ed975af79db9b37e78e39a5fcc (diff) | |
reduce size
Diffstat (limited to 'scripts/makeself')
| -rwxr-xr-x | scripts/makeself/build-runfile.sh | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/scripts/makeself/build-runfile.sh b/scripts/makeself/build-runfile.sh index 87a325557..f9ebc7224 100755 --- a/scripts/makeself/build-runfile.sh +++ b/scripts/makeself/build-runfile.sh @@ -2,35 +2,39 @@ cd "$(dirname "$0")/../.." xmakeroot=`pwd` +buildroot=$xmakeroot/scripts/makeself temproot=/tmp/xmake-makeself # prepare files to pack rm -rf $temproot -mkdir -p $temproot/xmake +mkdir -p $temproot/xmake/scripts cp -r ./core $temproot/xmake -cp -r ./scripts $temproot/xmake +cp ./scripts/get.sh $temproot/xmake/scripts cp -r ./xmake $temproot/xmake cp ./*.md $temproot/xmake cp makefile $temproot/xmake cd $temproot/xmake -rm -rf ./.xmake ./build +rm -rf ./core/.xmake ./core/build rm -rf ./core/src/tbox/tbox/src/demo rm -rf ./core/src/pdcurses -version=`cat ./core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` -sed -i "s/#xmake-version#/$version/g" ./scripts/makeself/header -sed -i "s/#xmake-version#/$version/g" ./scripts/makeself/lsm - +# prepare info texts cd $temproot +cp $buildroot/* . +version=`cat ./xmake/core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` +sed -i "s/#xmake-version#/$version/g" ./header +sed -i "s/#xmake-version#/$version/g" ./lsm + # install makeself +cd $temproot wget https://github.com/megastep/makeself/releases/download/release-2.4.0/makeself-2.4.0.run -O ./makeself-2.4.0.run sh ./makeself-2.4.0.run # make runfile ./makeself-2.4.0/makeself.sh \ --sha256 \ - --lsm ./xmake/scripts/makeself/lsm \ - --help-header ./xmake/scripts/makeself/header \ + --lsm ./lsm \ + --help-header ./header \ ./xmake $xmakeroot/scripts/makeself/xmake.run \ xmake \ ./scripts/get.sh __local__ |
