WIP: Windows install/starup tweaks
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user