git.s-ol.nu alive / 8a7e355
more distribution wip s-ol 1 year, 2 months ago
6 changed file(s) with 159 addition(s) and 142 deletion(s). Raw diff Collapse all Expand all
+0
-60
dist/build-win.sh less more
0 #!/bin/sh
1
2 VERSION="$1"
3 BUNDLE="alive-$VERSION-win"
4
5 set -e
6
7 if [ -d "dist/$BUNDLE.zip" ]; then
8 echo "dist/$BUNDLE.zip already exists!"
9 exit 2
10 fi
11
12 git archive "$VERSION:" -o "dist/$BUNDLE.zip" --prefix "$BUNDLE/alive/"
13
14 cd dist
15 unzip "$BUNDLE.zip"
16 cd "$BUNDLE"
17
18 cp -r ../docs .
19 mv alive/hello.alv .
20 rm -rf docs/*.md docs/*.ltp docs/gen
21 rm -rf alive/dist
22
23 unzip ../lua-win.zip
24
25 cat <<EOF >copilot.bat
26 @echo off
27 setlocal
28 set PATH=%PATH%;%~dp0\lua\lua\bin
29 set LUA_PATH=%LUA_PATH%;%~dp0\alive\?.lua;%~dp0\alive\?\init.lua
30 moon %~dp0\alive\init.moon %*
31 exit /b %ERRORLEVEL%
32 EOF
33
34 cat <<EOF >README.txt
35 alivecoding $VERSION
36 ====================
37
38 https://alive.s-ol.nu
39 https://github.com/s-ol/alivecoding
40
41 License
42 -------
43 alive is licensed under the GPLv3 free and open-source license, a copy of which
44 you can find in the file `alive/LICENSE`.
45
46 This binary distribution of alive contains the Lua interpreter, LuaRocks package
47 manager, and a number of Lua modules licensed under various terms. Lua and
48 LuaRocks are both licensed under the MIT license, while the packages can be
49 found within the `lua/lua` directory while their individual licensing
50 information may be viewed using `luarocks.bat`:
51
52 cmd.exe> luarocks.bat list
53 cmd.exe> luarocks.bat show moonscript
54 cmd.exe> luarocks.bat show ...
55 EOF
56
57 cd ..
58 rm "$BUNDLE.zip"
59 zip -rm "$BUNDLE.zip" "$BUNDLE"
0 #!/bin/sh
1
2 VERSION="$1"
3 BUNDLE="alive-$VERSION-win"
4
5 set -e
6
7 if [ -d "dist/$BUNDLE.zip" ]; then
8 echo "dist/$BUNDLE.zip already exists!"
9 exit 2
10 fi
11
12 # luarocks --tree lua/lua install --deps-mode none ../../alive-scm-1.all.rock
13
14 git archive "$VERSION:" -o "dist/$BUNDLE.zip" --prefix "$BUNDLE/alive/"
15
16 cd dist
17 unzip "$BUNDLE.zip"
18 cd "$BUNDLE"
19
20 cp -r ../../docs .
21 mv alive/hello.alv .
22 rm -rf docs/*.md docs/*.ltp docs/gen
23 rm -rf alive/dist
24
25 unzip ../lua-win.zip
26
27 cat <<EOF >copilot.bat
28 @echo off
29 setlocal
30 set PATH=%PATH%;%~dp0\lua\lua\bin
31 set LUA_PATH=%LUA_PATH%;%~dp0\alive\?.lua;%~dp0\alive\?\init.lua
32 moon %~dp0\alive\init.moon %*
33 exit /b %ERRORLEVEL%
34 EOF
35
36 cat <<EOF >README.md
37 alivecoding $VERSION
38 ====================
39
40 https://alive.s-ol.nu
41 https://github.com/s-ol/alivecoding
42
43 License
44 -------
45 alive is licensed under the GPLv3 free and open-source license, a copy of which
46 you can find in the file \`alive/LICENSE\`.
47
48 This binary distribution of alive contains the Lua interpreter, LuaRocks package
49 manager, and a number of Lua modules licensed under various terms. Lua and
50 LuaRocks are both licensed under the MIT license, while the packages can be
51 found within the \`lua/lua\` directory while their individual licensing
52 information may be viewed using \`luarocks.bat\`:
53
54 cmd.exe> luarocks.bat list
55 cmd.exe> luarocks.bat show moonscript
56 cmd.exe> luarocks.bat show ...
57 EOF
58
59 cd ..
60 rm "$BUNDLE.zip"
61 # zip -rm "$BUNDLE.zip" "$BUNDLE"
0 #!/bin/sh
1 set -e
2
3 VERSION="$1"
4 REVISION="${2:-1}"
5
6 VERSION="${VERSION#v}"
7 VERSION=$(echo "$VERSION" | tr -d -)
8
9 luarocks build "dist/rocks/alive-$VERSION-$REVISION.rockspec" \
10 --pack-binary-rock \
11 --sign \
12 --pin
00 #!/bin/sh
1 set -e
2
13 VERSION="${1:-scm}"
24 REVISION="${2:-1}"
35
3941 ' sh {} \;
4042 }
4143
42 cat <<STOP >"dist/rockspecs/alive-$VERSION-$REVISION.rockspec"
44 cat <<STOP >"dist/rocks/alive-$VERSION-$REVISION.rockspec"
4345 package = "alive"
4446 version = "$VERSION-$REVISION"
4547
0 package = "alive"
1 version = "scm-1"
2
3 source = {
4 url = "git://github.com/s-ol/alivecoding.git",
5 }
6
7 description = {
8 summary = "Experimental livecoding environment with persistent expressions",
9 detailed = [[
10 This is an experimental livecoding language and environment, in which
11 expressions persist and update until they are removed from the source code, and
12 the interpreter keeps no state that you cannot manipulate directly in the
13 source. This yields a direct-manipulation like experience with a purely
14 text-based language and works without special editor support.]],
15 homepage = "https://alive.s-ol.nu",
16 license = "GPL-3",
17 }
18
19 dependencies = {
20 "lua >= 5.3",
21 "moonscript >= 0.5.0",
22 "lpeg ~> 0.10",
23 "luafilesystem",
24 "luasystem",
25 "luasocket",
26 "osc",
27 }
28
29 build = {
30 type = "builtin",
31 modules = {},
32 copy_directories = { "docs" },
33 install = {
34 lua = {
35 ["alv.result"] = "alv/result.moon",
36 ["alv.stream.io"] = "alv/stream/io.moon",
37 ["alv.stream.base"] = "alv/stream/base.moon",
38 ["alv.stream.value"] = "alv/stream/value.moon",
39 ["alv.stream.event"] = "alv/stream/event.moon",
40 ["alv.stream.init"] = "alv/stream/init.moon",
41 ["alv.builtin"] = "alv/builtin.moon",
42 ["alv.cell"] = "alv/cell.moon",
43 ["alv.tag"] = "alv/tag.moon",
44 ["alv.copilot"] = "alv/copilot.moon",
45 ["alv.version"] = "alv/version.moon",
46 ["alv.error"] = "alv/error.moon",
47 ["alv.invoke"] = "alv/invoke.moon",
48 ["alv.cycle"] = "alv/cycle.moon",
49 ["alv.ast"] = "alv/ast.moon",
50 ["alv.base.builtin"] = "alv/base/builtin.moon",
51 ["alv.base.op"] = "alv/base/op.moon",
52 ["alv.base.fndef"] = "alv/base/fndef.moon",
53 ["alv.base.match"] = "alv/base/match.moon",
54 ["alv.base.input"] = "alv/base/input.moon",
55 ["alv.base.init"] = "alv/base/init.moon",
56 ["alv.registry"] = "alv/registry.moon",
57 ["alv.logger"] = "alv/logger.moon",
58 ["alv.init"] = "alv/init.moon",
59 ["alv.parsing"] = "alv/parsing.moon",
60 ["alv.scope"] = "alv/scope.moon",
61
62 ["alv-lib.osc"] = "alv-lib/osc.moon",
63 ["alv-lib.midi"] = "alv-lib/midi.moon",
64 ["alv-lib.sc"] = "alv-lib/sc.moon",
65 ["alv-lib.pilot"] = "alv-lib/pilot.moon",
66 ["alv-lib.random"] = "alv-lib/random.moon",
67 ["alv-lib.util"] = "alv-lib/util.moon",
68 ["alv-lib.string"] = "alv-lib/string.moon",
69 ["alv-lib.midi.launchctl"] = "alv-lib/midi/launchctl.moon",
70 ["alv-lib.midi.core"] = "alv-lib/midi/core.moon",
71 ["alv-lib.time"] = "alv-lib/time.moon",
72 ["alv-lib.logic"] = "alv-lib/logic.moon",
73 ["alv-lib.math"] = "alv-lib/math.moon",
74 },
75 bin = {
76 "bin/alv",
77 "bin/alv-copilot"
78 },
79 },
80 }
+0
-81
dist/rockspecs/alive-scm-1.rockspec less more
0 package = "alive"
1 version = "scm-1"
2
3 source = {
4 url = "git://github.com/s-ol/alivecoding.git",
5 }
6
7 description = {
8 summary = "Experimental livecoding environment with persistent expressions",
9 detailed = [[
10 This is an experimental livecoding language and environment, in which
11 expressions persist and update until they are removed from the source code, and
12 the interpreter keeps no state that you cannot manipulate directly in the
13 source. This yields a direct-manipulation like experience with a purely
14 text-based language and works without special editor support.]],
15 homepage = "https://alive.s-ol.nu",
16 license = "GPL-3",
17 }
18
19 dependencies = {
20 "lua >= 5.3",
21 "moonscript >= 0.5.0",
22 "lpeg ~> 0.10",
23 "luafilesystem",
24 "luasystem",
25 "luasocket",
26 "osc",
27 }
28
29 build = {
30 type = "builtin",
31 modules = {},
32 copy_directories = { "docs" },
33 install = {
34 lua = {
35 ["alv.result"] = "alv/result.moon",
36 ["alv.stream.io"] = "alv/stream/io.moon",
37 ["alv.stream.base"] = "alv/stream/base.moon",
38 ["alv.stream.value"] = "alv/stream/value.moon",
39 ["alv.stream.event"] = "alv/stream/event.moon",
40 ["alv.stream.init"] = "alv/stream/init.moon",
41 ["alv.builtin"] = "alv/builtin.moon",
42 ["alv.cell"] = "alv/cell.moon",
43 ["alv.tag"] = "alv/tag.moon",
44 ["alv.copilot"] = "alv/copilot.moon",
45 ["alv.version"] = "alv/version.moon",
46 ["alv.error"] = "alv/error.moon",
47 ["alv.invoke"] = "alv/invoke.moon",
48 ["alv.cycle"] = "alv/cycle.moon",
49 ["alv.ast"] = "alv/ast.moon",
50 ["alv.base.builtin"] = "alv/base/builtin.moon",
51 ["alv.base.op"] = "alv/base/op.moon",
52 ["alv.base.fndef"] = "alv/base/fndef.moon",
53 ["alv.base.match"] = "alv/base/match.moon",
54 ["alv.base.input"] = "alv/base/input.moon",
55 ["alv.base.init"] = "alv/base/init.moon",
56 ["alv.registry"] = "alv/registry.moon",
57 ["alv.logger"] = "alv/logger.moon",
58 ["alv.init"] = "alv/init.moon",
59 ["alv.parsing"] = "alv/parsing.moon",
60 ["alv.scope"] = "alv/scope.moon",
61
62 ["alv-lib.osc"] = "alv-lib/osc.moon",
63 ["alv-lib.midi"] = "alv-lib/midi.moon",
64 ["alv-lib.sc"] = "alv-lib/sc.moon",
65 ["alv-lib.pilot"] = "alv-lib/pilot.moon",
66 ["alv-lib.random"] = "alv-lib/random.moon",
67 ["alv-lib.util"] = "alv-lib/util.moon",
68 ["alv-lib.string"] = "alv-lib/string.moon",
69 ["alv-lib.midi.launchctl"] = "alv-lib/midi/launchctl.moon",
70 ["alv-lib.midi.core"] = "alv-lib/midi/core.moon",
71 ["alv-lib.time"] = "alv-lib/time.moon",
72 ["alv-lib.logic"] = "alv-lib/logic.moon",
73 ["alv-lib.math"] = "alv-lib/math.moon",
74 },
75 bin = {
76 "bin/alv",
77 "bin/alv-copilot"
78 },
79 },
80 }