13 lines
638 B
Bash
Executable File
13 lines
638 B
Bash
Executable File
#!/bin/sh
|
|
mkdir -p dist
|
|
rm -r dist/*
|
|
cp src/polychoron.lua dist/startup
|
|
cp -r src/xlib/ dist
|
|
cp -r src/signing-key.tbl dist
|
|
cp -r src/LICENSES dist
|
|
cp -r src/bin/ dist
|
|
cp src/potatobios.lua dist/
|
|
luabundler bundle src/main.lua -p "src/lib/?.lua" | perl -pe 'chomp if eof' > dist/autorun.lua
|
|
sed -i '19iif _G.package and _G.package.loaded[package] then loadedModule = _G.package.loaded[package] end if _G.package and _G.package.preload[package] then local pkg = _G.package.preload[package](_G.package) _G.package.loaded[package] = pkg loadedModule = pkg end' dist/autorun.lua
|
|
echo -n "(...)" >> dist/autorun.lua
|
|
./generate_manifest.py "$@" |