WIP: Windows install/starup tweaks

This commit is contained in:
2020-01-19 23:44:46 +09:00
parent 9f1763ec1c
commit 4e3c5d7202
7 changed files with 69 additions and 30 deletions
+8 -8
View File
@@ -5,18 +5,18 @@
main(_) ->
{ok, BV} = file:read_file("zomp/etc/version.txt"),
Version = string:strip(binary_to_list(BV), both, $\n),
Tar = "zomp.tar.gz",
ok = erl_tar:create(Tar, ["zomp"], [compressed]),
Zip = "zx-" ++ Version ++ ".zip",
ZipFiles =
Inner = "zomp.zip",
Outer = "zx-" ++ Version ++ ".zip",
{ok, Inner} = zip:create(Inner, ["zomp"]),
Files =
["install.escript",
"install_unix",
"uninstall_unix",
"README.md",
"README.install",
"LICENSE",
Tar],
{ok, Zip} = zip:create(Zip, ZipFiles),
ok = file:delete(Tar),
ok = io:format("~ts~n", [Zip]),
Inner],
{ok, Outer} = zip:create(Outer, Files),
ok = file:delete(Inner),
ok = io:format("~ts~n", [Outer]),
halt(0).