Skip to content
Snippets Groups Projects
Commit 4aa97c6f authored by majou's avatar majou
Browse files

change compile.sh to make symlinks instead of full copies

previously, compile.sh was changed to copy game's html under a
predictable name that the apk builder script expects to find. however,
using a full copy is inefficient use of space and doesn't work well
with the compiler's watch mode. i've changed the compile script to make
symlinks instead, and modified the apk builder script to support them.
parent 7605dda9
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,8 @@ function compile() {
exit 1
else
if [ "$TARGET" != "Degrees of Lewdity.html" ]; then
# android builder expects to find a file by this name, and it has to be full copy, not just symlink
cp "$TARGET" "Degrees of Lewdity.html";
# android builder expects to find a file by this name. this is a symbolic link, not a full copy
ln -fs "$TARGET" "Degrees of Lewdity.html";
fi
echo "Done: \"$TARGET\""
exit 0
......
......@@ -28,6 +28,6 @@ function copyFilesFromRoot() {
}
fs.ensureDirSync(paths.dest.android.img);
fs.copySync(paths.src.main, paths.dest.android.main);
fs.copySync(paths.src.main, paths.dest.android.main, {dereference: true});
fs.copySync(paths.src.img, paths.dest.android.img);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment