diff options
| author | ruki <[email protected]> | 2023-11-25 00:43:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-25 00:43:45 +0800 |
| commit | 103bbe833dc6c1e8203cab0e842e49cfa426d0a4 (patch) | |
| tree | 9b94a45dbb2803de00f36d2b5f3d3ad8e01fc27c /scripts | |
| parent | e393610e3f53aed9293882a668045fd67f1e1cd5 (diff) | |
remove build-runfile
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/makeself/build-runfile.sh | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/scripts/makeself/build-runfile.sh b/scripts/makeself/build-runfile.sh deleted file mode 100755 index d3149a2cd..000000000 --- a/scripts/makeself/build-runfile.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash - -# path constants -cd "$(dirname "$0")/../.." -xmakeroot=`pwd` -buildroot=$xmakeroot/scripts/makeself -artifactsdir=$xmakeroot/artifacts -if [ ! -d $artifactsdir ]; then - mkdir $artifactsdir -fi -tmpdir=/tmp/xmake-makeself -if [ -d $tmpdir ]; then - rm -rf $tmpdir -fi -mkdir -p $tmpdir - -# copy xmake repo to tmpdir/repo, remove git ignored files -cp -r $xmakeroot $tmpdir/repo -cd $tmpdir/repo || exit -git reset --hard HEAD -git clean -dfX -git submodule foreach git clean -dfX - -# copy files to tmpdir/xmake -mkdir -p $tmpdir/xmake/scripts -cd $tmpdir/repo || exit -cp -r ./xmake $tmpdir/xmake/xmake -cp -r ./core $tmpdir/xmake -cp ./scripts/*.sh $tmpdir/xmake/scripts -cp ./*.md $tmpdir/xmake -cp configure $tmpdir/xmake -cd $tmpdir/xmake || exit -rm -rf ./core/src/tbox/tbox/src/demo -rm -rf ./core/src/tbox/tbox/src/tbox/platform/windows -rm -rf ./core/src/pdcurses -rm -rf ./core/src/luajit - -# prepare info texts -cd $tmpdir -cp $buildroot/* . -version=`cat ./xmake/core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` -perl -pi -e "s/#xmake-version#/$version/g" ./header -perl -pi -e "s/#xmake-version#/$version/g" ./lsm - -# make run file -cd $tmpdir -makeself_version="2.5.0" -curl -fsSL https://github.com/megastep/makeself/releases/download/release-$makeself_version/makeself-$makeself_version.run -o ./makeself-$makeself_version.run -sh ./makeself-$makeself_version.run -./makeself-$makeself_version/makeself.sh \ - --gzip \ - --sha256 \ - --lsm ./lsm \ - --help-header ./header \ - ./xmake \ - $artifactsdir/xmake.gz.run \ - xmake-v$version-runfile \ - ./scripts/get.sh __local__ -./makeself-$makeself_version/makeself.sh \ - --xz \ - --sha256 \ - --lsm ./lsm \ - --help-header ./header \ - ./xmake \ - $artifactsdir/xmake.xz.run \ - xmake-v$version-runfile \ - ./scripts/get.sh __local__ |
