summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-18 22:54:34 +0800
committerOpportunityLiu <[email protected]>2019-07-18 22:54:34 +0800
commitb3b49a20fb6628e586af748f400553ab33344416 (patch)
tree5ef14eed792b26c350963bd1b289c7fe0e939cb2 /scripts
parent2745737b93ba817e7708990850c2acbbc856cdd8 (diff)
add runfile
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makeself/build-runfile.sh21
-rw-r--r--scripts/makeself/header9
-rw-r--r--scripts/makeself/lsm15
3 files changed, 45 insertions, 0 deletions
diff --git a/scripts/makeself/build-runfile.sh b/scripts/makeself/build-runfile.sh
new file mode 100644
index 000000000..87641dd69
--- /dev/null
+++ b/scripts/makeself/build-runfile.sh
@@ -0,0 +1,21 @@
+#! /bin/bash
+
+cd "$(dirname "$0")/../.."
+
+# prepare files to pack
+mkdir -p /tmp/xmake-makeself/xmake
+cp -r ./core /tmp/xmake-makeself/xmake
+cp -r ./scripts /tmp/xmake-makeself/xmake
+cp -r ./xmake /tmp/xmake-makeself/xmake
+cp ./*.md /tmp/xmake-makeself/xmake
+cp makefile /tmp/xmake-makeself/xmake
+
+cd /tmp/xmake-makeself
+# install makeself
+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 --lsm ./xmake/scripts/makeself/lsm --help-header ./xmake/scripts/makeself/header ./xmake xmake.run xmake ./scripts/get.sh __local__
+
+cp xmake.run "$(dirname "$0")"
diff --git a/scripts/makeself/header b/scripts/makeself/header
new file mode 100644
index 000000000..141a9febd
--- /dev/null
+++ b/scripts/makeself/header
@@ -0,0 +1,9 @@
+xmake, 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 \ No newline at end of file
diff --git a/scripts/makeself/lsm b/scripts/makeself/lsm
new file mode 100644
index 000000000..597279afb
--- /dev/null
+++ b/scripts/makeself/lsm
@@ -0,0 +1,15 @@
+Begin3
+Title: xmake
+Version: 2.7.0
+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 \ No newline at end of file