diff options
| author | ruki <[email protected]> | 2023-11-24 23:09:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-24 23:09:46 +0800 |
| commit | 51efaa718683a9bf18cd6859e60f1d5240c10c5d (patch) | |
| tree | 0ae3485ef5434f8acfc70210b6910356aa5adfc5 /scripts | |
| parent | 16f74fe53b4c240c8bee69e1d06dc821067f2817 (diff) | |
| parent | 43ac546cbd551bf06ae37a8211c8a65d9eadbb0b (diff) | |
Merge pull request #4415 from xmake-io/makeself
pack runself
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/makeppa | 2 | ||||
| -rwxr-xr-x | scripts/makeself/build-runfile.sh | 67 | ||||
| -rw-r--r-- | scripts/makeself/header | 8 | ||||
| -rw-r--r-- | scripts/makeself/lsm | 15 |
4 files changed, 1 insertions, 91 deletions
diff --git a/scripts/makeppa b/scripts/makeppa index 53b559e10..2cf5fcc24 100755 --- a/scripts/makeppa +++ b/scripts/makeppa @@ -32,7 +32,7 @@ basename=xmake-$version+$patch$serie tarball=$workdir/$basename.tar.gz if [ ! -f $tarball ]; then cd core - xmake pack --autobuild=n --formats=targz --basename=xmake -o ../artifacts xmakesrc || exit -1 + xmake pack --autobuild=n -y --formats=srctargz --basename=xmake -o ../artifacts xmakesrc || exit -1 cd .. cp ./artifacts/xmake.tar.gz $tarball fi 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__ diff --git a/scripts/makeself/header b/scripts/makeself/header deleted file mode 100644 index f247ee7bd..000000000 --- a/scripts/makeself/header +++ /dev/null @@ -1,8 +0,0 @@ -xmake v#xmake-version#, A cross-platform build utility based on Lua -Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io - _ - __ ___ __ __ __ _| | ______ - \ \/ / | \/ |/ _ | |/ / __ \ - > < | \__/ | /_| | < ___/ - /_/\_\_|_| |_|\__ \|_|\_\____| - by ruki, xmake.io diff --git a/scripts/makeself/lsm b/scripts/makeself/lsm deleted file mode 100644 index 012efa4a1..000000000 --- a/scripts/makeself/lsm +++ /dev/null @@ -1,15 +0,0 @@ -Begin3 -Title: xmake -Version: #xmake-version# -Description: xmake is a cross-platform build utility based on lua. - The project focuses on making development and building easier and - provides many features (e.g package, install, plugin, macro, action, option, task ...), - so that any developer can quickly pick it up and - enjoy a productivity boost when developing and building projects. -Keywords: make build -Author: ruki ([email protected]) -Maintained-by: ruki ([email protected]) -Original-site: https://xmake.io/ -Platform: Unix; Windows -Copying-policy: Apache-2.0 -End |
