-
-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #499 from OpportunityLiu/makeself
Add runfile
- Loading branch information
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ tags | |
winenv/ | ||
*.exe | ||
*.zip | ||
*.run | ||
|
||
# Makefile generation | ||
/core/xmake.config.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#! /usr/bin/env bash | ||
|
||
# path constants | ||
cd "$(dirname "$0")/../.." | ||
xmakeroot=`pwd` | ||
buildroot=$xmakeroot/scripts/makeself | ||
temproot=/tmp/xmake-makeself | ||
|
||
# prepare files to pack | ||
# clean up temproot | ||
rm -rf $temproot | ||
mkdir -p $temproot | ||
|
||
# copy xmake repo to temproot/xmake-repo, remove git ignored files | ||
cp -Tr $xmakeroot $temproot/xmake-repo | ||
cd $temproot/xmake-repo | ||
git clean -dfX | ||
git submodule foreach git clean -dfX | ||
|
||
# copy files to temproot/xmake | ||
mkdir -p $temproot/xmake/scripts | ||
cd $temproot/xmake-repo | ||
cp -r ./core $temproot/xmake | ||
cp -r ./xmake $temproot/xmake | ||
cp ./scripts/get.sh $temproot/xmake/scripts | ||
cp ./*.md $temproot/xmake | ||
cp makefile $temproot/xmake | ||
cd $temproot/xmake | ||
rm -rf ./core/src/tbox/tbox/src/demo | ||
rm -rf ./core/src/pdcurses | ||
|
||
# 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 | ||
|
||
# make run file | ||
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 | ||
./makeself-2.4.0/makeself.sh \ | ||
--sha256 \ | ||
--lsm ./lsm \ | ||
--help-header ./header \ | ||
./xmake \ | ||
$buildroot/xmake.run \ | ||
xmake-v$version-runfile \ | ||
./scripts/get.sh __local__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
xmake v#xmake-version#, A cross-platform build utility based on Lua | ||
Copyright (C) 2015-2019 Ruki Wang, tboox.org, xmake.io | ||
Copyright (C) 2005-2015 Mike Pall, luajit.org | ||
_ | ||
__ ___ __ __ __ _| | ______ | ||
\ \/ / | \/ |/ _ | |/ / __ \ | ||
> < | \__/ | /_| | < ___/ | ||
/_/\_\_|_| |_|\__ \|_|\_\____| | ||
by ruki, tboox.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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 |