From 09789ffab4b31542e794d94b53ab501a178b4f05 Mon Sep 17 00:00:00 2001 From: RuiNtD Date: Fri, 10 Nov 2023 16:12:22 -0700 Subject: [PATCH 1/2] Update scripts Using Dax now and pinning permissions --- deno.json | 8 +- deno.lock | 206 ++++++++++++++++++++++++++++++++++++++++++++++ fileinfo.ts | 62 +++++++------- make.bat | 5 -- make_launcher.bat | 2 - test_launcher.bat | 4 - update.ts | 77 +++++++++-------- 7 files changed, 280 insertions(+), 84 deletions(-) delete mode 100644 make.bat delete mode 100644 make_launcher.bat delete mode 100644 test_launcher.bat diff --git a/deno.json b/deno.json index 79a8032..47dd5e1 100644 --- a/deno.json +++ b/deno.json @@ -3,9 +3,11 @@ "udd": "deno run -r --allow-read=. --allow-write=. --allow-net https://deno.land/x/udd/main.ts deno.json" }, "imports": { - "std/": "https://deno.land/std@0.205.0/", - "zod": "https://deno.land/x/zod@v3.22.4/mod.ts", + "std/": "https://deno.land/std@0.206.0/", + "permissions": "https://deno.land/std@0.200.0/permissions/mod.ts#=", + "dax": "https://deno.land/x/dax@0.35.0/mod.ts", "ini": "npm:ini@4.1.1", - "zipjs": "https://deno.land/x/zipjs@v2.7.30/index.js" + "zipjs": "https://deno.land/x/zipjs@v2.7.30/index.js", + "zod": "https://deno.land/x/zod@v3.22.4/mod.ts" } } diff --git a/deno.lock b/deno.lock index aae4fc5..878f1f5 100644 --- a/deno.lock +++ b/deno.lock @@ -287,6 +287,64 @@ "https://deno.land/std@0.196.0/path/posix.ts": "8b7c67ac338714b30c816079303d0285dd24af6b284f7ad63da5b27372a2c94d", "https://deno.land/std@0.196.0/path/separator.ts": "0fb679739d0d1d7bf45b68dacfb4ec7563597a902edbaf3c59b50d5bcadd93b1", "https://deno.land/std@0.196.0/path/win32.ts": "4fca292f8d116fd6d62f243b8a61bd3d6835a9f0ede762ba5c01afe7c3c0aa12", + "https://deno.land/std@0.201.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", + "https://deno.land/std@0.201.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", + "https://deno.land/std@0.201.0/bytes/copy.ts": "939d89e302a9761dcf1d9c937c7711174ed74c59eef40a1e4569a05c9de88219", + "https://deno.land/std@0.201.0/fmt/colors.ts": "87544aa2bc91087bb37f9c077970c85bfb041b48e4c37356129d7b450a415b6f", + "https://deno.land/std@0.201.0/fs/_util.ts": "fbf57dcdc9f7bc8128d60301eece608246971a7836a3bb1e78da75314f08b978", + "https://deno.land/std@0.201.0/fs/copy.ts": "23cc1c465babe5ca4d69778821e2f8addc44593e30a5ca0b902b3784eed75bb6", + "https://deno.land/std@0.201.0/fs/empty_dir.ts": "2e52cd4674d18e2e007175c80449fc3d263786a1361e858d9dfa9360a6581b47", + "https://deno.land/std@0.201.0/fs/ensure_dir.ts": "dc64c4c75c64721d4e3fb681f1382f803ff3d2868f08563ff923fdd20d071c40", + "https://deno.land/std@0.201.0/fs/ensure_file.ts": "39ac83cc283a20ec2735e956adf5de3e8a3334e0b6820547b5772f71c49ae083", + "https://deno.land/std@0.201.0/fs/ensure_link.ts": "c15e69c48556d78aae31b83e0c0ece04b7b8bc0951412f5b759aceb6fde7f0ac", + "https://deno.land/std@0.201.0/fs/ensure_symlink.ts": "b389c8568f0656d145ac7ece472afe710815cccbb2ebfd19da7978379ae143fe", + "https://deno.land/std@0.201.0/fs/eol.ts": "f1f2eb348a750c34500741987b21d65607f352cf7205f48f4319d417fff42842", + "https://deno.land/std@0.201.0/fs/exists.ts": "cb59a853d84871d87acab0e7936a4dac11282957f8e195102c5a7acb42546bb8", + "https://deno.land/std@0.201.0/fs/expand_glob.ts": "52b8b6f5b1fa585c348250da1c80ce5d820746cb4a75d874b3599646f677d3a7", + "https://deno.land/std@0.201.0/fs/mod.ts": "bc3d0acd488cc7b42627044caf47d72019846d459279544e1934418955ba4898", + "https://deno.land/std@0.201.0/fs/move.ts": "b4f8f46730b40c32ea3c0bc8eb0fd0e8139249a698883c7b3756424cf19785c9", + "https://deno.land/std@0.201.0/fs/walk.ts": "a16146724a6aaf9efdb92023a74e9805195c3469900744ce5de4113b07b29779", + "https://deno.land/std@0.201.0/io/buf_reader.ts": "0bd8ad26255945b5f418940db23db03bee0c160dbb5ae4627e2c0be3b361df6a", + "https://deno.land/std@0.201.0/io/buffer.ts": "4d6883daeb2e698579c4064170515683d69f40f3de019bfe46c5cf31e74ae793", + "https://deno.land/std@0.201.0/path/_basename.ts": "057d420c9049821f983f784fd87fa73ac471901fb628920b67972b0f44319343", + "https://deno.land/std@0.201.0/path/_constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", + "https://deno.land/std@0.201.0/path/_dirname.ts": "355e297236b2218600aee7a5301b937204c62e12da9db4b0b044993d9e658395", + "https://deno.land/std@0.201.0/path/_extname.ts": "eaaa5aae1acf1f03254d681bd6a8ce42a9cb5b7ff2213a9d4740e8ab31283664", + "https://deno.land/std@0.201.0/path/_format.ts": "4a99270d6810f082e614309164fad75d6f1a483b68eed97c830a506cc589f8b4", + "https://deno.land/std@0.201.0/path/_from_file_url.ts": "6eadfae2e6f63ad9ee46b26db4a1b16583055c0392acedfb50ed2fc694b6f581", + "https://deno.land/std@0.201.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", + "https://deno.land/std@0.201.0/path/_is_absolute.ts": "05dac10b5e93c63198b92e3687baa2be178df5321c527dc555266c0f4f51558c", + "https://deno.land/std@0.201.0/path/_join.ts": "815f5e85b042285175b1492dd5781240ce126c23bd97bad6b8211fe7129c538e", + "https://deno.land/std@0.201.0/path/_normalize.ts": "a19ec8706b2707f9dd974662a5cd89fad438e62ab1857e08b314a8eb49a34d81", + "https://deno.land/std@0.201.0/path/_os.ts": "d932f56d41e4f6a6093d56044e29ce637f8dcc43c5a90af43504a889cf1775e3", + "https://deno.land/std@0.201.0/path/_parse.ts": "0f9b0ff43682dd9964eb1c4398610c4e165d8db9d3ac9d594220217adf480cfa", + "https://deno.land/std@0.201.0/path/_relative.ts": "27bdeffb5311a47d85be26d37ad1969979359f7636c5cd9fcf05dcd0d5099dc5", + "https://deno.land/std@0.201.0/path/_resolve.ts": "7a3616f1093735ed327e758313b79c3c04ea921808ca5f19ddf240cb68d0adf6", + "https://deno.land/std@0.201.0/path/_to_file_url.ts": "a141e4a525303e1a3a0c0571fd024552b5f3553a2af7d75d1ff3a503dcbb66d8", + "https://deno.land/std@0.201.0/path/_to_namespaced_path.ts": "0d5f4caa2ed98ef7a8786286df6af804b50e38859ae897b5b5b4c8c5930a75c8", + "https://deno.land/std@0.201.0/path/_util.ts": "4e191b1bac6b3bf0c31aab42e5ca2e01a86ab5a0d2e08b75acf8585047a86221", + "https://deno.land/std@0.201.0/path/basename.ts": "bdfa5a624c6a45564dc6758ef2077f2822978a6dbe77b0a3514f7d1f81362930", + "https://deno.land/std@0.201.0/path/common.ts": "ee7505ab01fd22de3963b64e46cff31f40de34f9f8de1fff6a1bd2fe79380000", + "https://deno.land/std@0.201.0/path/dirname.ts": "b6533f4ee4174a526dec50c279534df5345836dfdc15318400b08c62a62a39dd", + "https://deno.land/std@0.201.0/path/extname.ts": "62c4b376300795342fe1e4746c0de518b4dc9c4b0b4617bfee62a2973a9555cf", + "https://deno.land/std@0.201.0/path/format.ts": "110270b238514dd68455a4c54956215a1aff7e37e22e4427b7771cefe1920aa5", + "https://deno.land/std@0.201.0/path/from_file_url.ts": "9f5cb58d58be14c775ec2e57fc70029ac8b17ed3bd7fe93e475b07280adde0ac", + "https://deno.land/std@0.201.0/path/glob.ts": "593e2c3573883225c25c5a21aaa8e9382a696b8e175ea20a3b6a1471ad17aaed", + "https://deno.land/std@0.201.0/path/is_absolute.ts": "0b92eb35a0a8780e9f16f16bb23655b67dace6a8e0d92d42039e518ee38103c1", + "https://deno.land/std@0.201.0/path/join.ts": "31c5419f23d91655b08ec7aec403f4e4cd1a63d39e28f6e42642ea207c2734f8", + "https://deno.land/std@0.201.0/path/mod.ts": "6e1efb0b13121463aedb53ea51dabf5639a3172ab58c89900bbb72b486872532", + "https://deno.land/std@0.201.0/path/normalize.ts": "6ea523e0040979dd7ae2f1be5bf2083941881a252554c0f32566a18b03021955", + "https://deno.land/std@0.201.0/path/parse.ts": "be8de342bb9e1924d78dc4d93c45215c152db7bf738ec32475560424b119b394", + "https://deno.land/std@0.201.0/path/posix.ts": "0a1c1952d132323a88736d03e92bd236f3ed5f9f079e5823fae07c8d978ee61b", + "https://deno.land/std@0.201.0/path/relative.ts": "8bedac226afd360afc45d451a6c29fabceaf32978526bcb38e0c852661f66c61", + "https://deno.land/std@0.201.0/path/resolve.ts": "133161e4949fc97f9ca67988d51376b0f5eef8968a6372325ab84d39d30b80dc", + "https://deno.land/std@0.201.0/path/separator.ts": "40a3e9a4ad10bef23bc2cd6c610291b6c502a06237c2c4cd034a15ca78dedc1f", + "https://deno.land/std@0.201.0/path/to_file_url.ts": "00e6322373dd51ad109956b775e4e72e5f9fa68ce2c6b04e4af2a6eed3825d31", + "https://deno.land/std@0.201.0/path/to_namespaced_path.ts": "1b1db3055c343ab389901adfbda34e82b7386bcd1c744d54f9c1496ee0fd0c3d", + "https://deno.land/std@0.201.0/path/win32.ts": "8b3f80ef7a462511d5e8020ff490edcaa0a0d118f1b1e9da50e2916bdd73f9dd", + "https://deno.land/std@0.201.0/streams/read_all.ts": "ee319772fb0fd28302f97343cc48dfcf948f154fd0d755d8efe65814b70533be", + "https://deno.land/std@0.201.0/streams/reader_from_stream_reader.ts": "fa4971e5615a010e49492c5d1688ca1a4d17472a41e98b498ab89a64ebd7ac73", + "https://deno.land/std@0.201.0/streams/write_all.ts": "aec90152978581ea62d56bb53a5cbf487e6a89c902f87c5969681ffbdf32b998", "https://deno.land/std@0.205.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", "https://deno.land/std@0.205.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", "https://deno.land/std@0.205.0/crypto/_fnv/fnv32.ts": "e4649dfdefc5c987ed53c3c25db62db771a06d9d1b9c36d2b5cf0853b8e82153", @@ -387,6 +445,115 @@ "https://deno.land/std@0.205.0/path/windows/to_file_url.ts": "8e9ea9e1ff364aa06fa72999204229952d0a279dbb876b7b838b2b2fea55cce3", "https://deno.land/std@0.205.0/path/windows/to_namespaced_path.ts": "e0f4d4a5e77f28a5708c1a33ff24360f35637ba6d8f103d19661255ef7bfd50d", "https://deno.land/std@0.205.0/permissions/mod.ts": "78e261063cd50aedaa15d3b0316ce8a5071e2f38cb172ed42862e7a53af72589", + "https://deno.land/std@0.206.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", + "https://deno.land/std@0.206.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", + "https://deno.land/std@0.206.0/crypto/_fnv/fnv32.ts": "e4649dfdefc5c987ed53c3c25db62db771a06d9d1b9c36d2b5cf0853b8e82153", + "https://deno.land/std@0.206.0/crypto/_fnv/fnv64.ts": "bfa0e4702061fdb490a14e6bf5f9168a22fb022b307c5723499469bfefca555e", + "https://deno.land/std@0.206.0/crypto/_fnv/mod.ts": "f956a95f58910f223e420340b7404702ecd429603acd4491fa77af84f746040c", + "https://deno.land/std@0.206.0/crypto/_fnv/util.ts": "accba12bfd80a352e32a872f87df2a195e75561f1b1304a4cb4f5a4648d288f9", + "https://deno.land/std@0.206.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.mjs": "6dd6f8d5061b7805579e954059a01aeec95636aac8fd408feb4352757cde71ae", + "https://deno.land/std@0.206.0/crypto/_wasm/mod.ts": "c4386f0ee80968faa82079cc21066aba2147bd6ca74ae45f1478fca7dbca804a", + "https://deno.land/std@0.206.0/crypto/crypto.ts": "58326eb8d076bb59723ad374fe0edaa3101e721d6d818b2f3fb4487fa0ee9e7a", + "https://deno.land/std@0.206.0/crypto/mod.ts": "e49caf22e980db882b917c48ac119e44c46ab57399cb565c2cd3138f8c33835e", + "https://deno.land/std@0.206.0/crypto/timing_safe_equal.ts": "f6edc08d702f660b1ab3505b74d53a9d499e34a1351f6ab70f5ce8653fee8fb7", + "https://deno.land/std@0.206.0/crypto/to_hash_string.ts": "c78050f72a9d4a690d85e83a85a43c2951d23a04d5b2a4537b2ebc00854421be", + "https://deno.land/std@0.206.0/crypto/unstable_keystack.ts": "c53d746f91a2c6844b92fe6d8670af92d4de19d12af677406700f8ad61466bde", + "https://deno.land/std@0.206.0/encoding/_util.ts": "f368920189c4fe6592ab2e93bd7ded8f3065b84f95cd3e036a4a10a75649dcba", + "https://deno.land/std@0.206.0/encoding/base64.ts": "cc03110d6518170aeaa68ec97f89c6d6e2276294b30807e7332591d7ce2e4b72", + "https://deno.land/std@0.206.0/encoding/base64url.ts": "7608862858d28a003f9d6cb78dd61e645ecd1ae1f45faf0e09a306eafe66b16e", + "https://deno.land/std@0.206.0/encoding/hex.ts": "d41e9c3f7dd9d4738c40c2b9e6db5eb32e9dc103360291aff63a5c3fccdb45a6", + "https://deno.land/std@0.206.0/fmt/bytes.ts": "f29cf69e0791d375f9f5d94ae1f0641e5a03b975f32ddf86d70f70fdf37e7b6a", + "https://deno.land/std@0.206.0/fs/_util.ts": "fbf57dcdc9f7bc8128d60301eece608246971a7836a3bb1e78da75314f08b978", + "https://deno.land/std@0.206.0/fs/copy.ts": "ca19e4837965914471df38fbd61e16f9e8adfe89f9cffb0c83615c83ea3fc2bf", + "https://deno.land/std@0.206.0/fs/empty_dir.ts": "0b4a2508232446eed232ad1243dd4b0f07ac503a281633ae1324d1528df70964", + "https://deno.land/std@0.206.0/fs/ensure_dir.ts": "dc64c4c75c64721d4e3fb681f1382f803ff3d2868f08563ff923fdd20d071c40", + "https://deno.land/std@0.206.0/fs/ensure_file.ts": "39ac83cc283a20ec2735e956adf5de3e8a3334e0b6820547b5772f71c49ae083", + "https://deno.land/std@0.206.0/fs/ensure_link.ts": "c15e69c48556d78aae31b83e0c0ece04b7b8bc0951412f5b759aceb6fde7f0ac", + "https://deno.land/std@0.206.0/fs/ensure_symlink.ts": "b389c8568f0656d145ac7ece472afe710815cccbb2ebfd19da7978379ae143fe", + "https://deno.land/std@0.206.0/fs/eol.ts": "f1f2eb348a750c34500741987b21d65607f352cf7205f48f4319d417fff42842", + "https://deno.land/std@0.206.0/fs/exists.ts": "cb59a853d84871d87acab0e7936a4dac11282957f8e195102c5a7acb42546bb8", + "https://deno.land/std@0.206.0/fs/expand_glob.ts": "4f98c508fc9e40d6311d2f7fd88aaad05235cc506388c22dda315e095305811d", + "https://deno.land/std@0.206.0/fs/mod.ts": "bc3d0acd488cc7b42627044caf47d72019846d459279544e1934418955ba4898", + "https://deno.land/std@0.206.0/fs/move.ts": "b4f8f46730b40c32ea3c0bc8eb0fd0e8139249a698883c7b3756424cf19785c9", + "https://deno.land/std@0.206.0/fs/walk.ts": "c1e6b43f72a46e89b630140308bd51a4795d416a416b4cfb7cd4bd1e25946723", + "https://deno.land/std@0.206.0/path/_common/assert_path.ts": "061e4d093d4ba5aebceb2c4da3318bfe3289e868570e9d3a8e327d91c2958946", + "https://deno.land/std@0.206.0/path/_common/basename.ts": "0d978ff818f339cd3b1d09dc914881f4d15617432ae519c1b8fdc09ff8d3789a", + "https://deno.land/std@0.206.0/path/_common/common.ts": "9e4233b2eeb50f8b2ae10ecc2108f58583aea6fd3e8907827020282dc2b76143", + "https://deno.land/std@0.206.0/path/_common/constants.ts": "e49961f6f4f48039c0dfed3c3f93e963ca3d92791c9d478ac5b43183413136e0", + "https://deno.land/std@0.206.0/path/_common/dirname.ts": "2ba7fb4cc9fafb0f38028f434179579ce61d4d9e51296fad22b701c3d3cd7397", + "https://deno.land/std@0.206.0/path/_common/format.ts": "11aa62e316dfbf22c126917f5e03ea5fe2ee707386555a8f513d27ad5756cf96", + "https://deno.land/std@0.206.0/path/_common/from_file_url.ts": "ef1bf3197d2efbf0297a2bdbf3a61d804b18f2bcce45548ae112313ec5be3c22", + "https://deno.land/std@0.206.0/path/_common/glob_to_reg_exp.ts": "5c3c2b79fc2294ec803d102bd9855c451c150021f452046312819fbb6d4dc156", + "https://deno.land/std@0.206.0/path/_common/normalize.ts": "2ba7fb4cc9fafb0f38028f434179579ce61d4d9e51296fad22b701c3d3cd7397", + "https://deno.land/std@0.206.0/path/_common/normalize_string.ts": "88c472f28ae49525f9fe82de8c8816d93442d46a30d6bb5063b07ff8a89ff589", + "https://deno.land/std@0.206.0/path/_common/relative.ts": "1af19d787a2a84b8c534cc487424fe101f614982ae4851382c978ab2216186b4", + "https://deno.land/std@0.206.0/path/_common/strip_trailing_separators.ts": "7ffc7c287e97bdeeee31b155828686967f222cd73f9e5780bfe7dfb1b58c6c65", + "https://deno.land/std@0.206.0/path/_common/to_file_url.ts": "a8cdd1633bc9175b7eebd3613266d7c0b6ae0fb0cff24120b6092ac31662f9ae", + "https://deno.land/std@0.206.0/path/_interface.ts": "6471159dfbbc357e03882c2266d21ef9afdb1e4aa771b0545e90db58a0ba314b", + "https://deno.land/std@0.206.0/path/_os.ts": "30b0c2875f360c9296dbe6b7f2d528f0f9c741cecad2e97f803f5219e91b40a2", + "https://deno.land/std@0.206.0/path/basename.ts": "04bb5ef3e86bba8a35603b8f3b69537112cdd19ce64b77f2522006da2977a5f3", + "https://deno.land/std@0.206.0/path/common.ts": "f4d061c7d0b95a65c2a1a52439edec393e906b40f1caf4604c389fae7caa80f5", + "https://deno.land/std@0.206.0/path/dirname.ts": "88a0a71c21debafc4da7a4cd44fd32e899462df458fbca152390887d41c40361", + "https://deno.land/std@0.206.0/path/extname.ts": "2da4e2490f3b48b7121d19fb4c91681a5e11bd6bd99df4f6f47d7a71bb6ecdf2", + "https://deno.land/std@0.206.0/path/format.ts": "3457530cc85d1b4bab175f9ae73998b34fd456c830d01883169af0681b8894fb", + "https://deno.land/std@0.206.0/path/from_file_url.ts": "e7fa233ea1dff9641e8d566153a24d95010110185a6f418dd2e32320926043f8", + "https://deno.land/std@0.206.0/path/glob.ts": "b8333cbb4aaaeb54ca6d6c43e0b69fb13c9481c69ed7a3c64a3d0d9daf2af769", + "https://deno.land/std@0.206.0/path/glob_to_regexp.ts": "74d7448c471e293d03f05ccb968df4365fed6aaa508506b6325a8efdc01d8271", + "https://deno.land/std@0.206.0/path/is_absolute.ts": "67232b41b860571c5b7537f4954c88d86ae2ba45e883ee37d3dec27b74909d13", + "https://deno.land/std@0.206.0/path/is_glob.ts": "567dce5c6656bdedfc6b3ee6c0833e1e4db2b8dff6e62148e94a917f289c06ad", + "https://deno.land/std@0.206.0/path/join.ts": "98d3d76c819af4a11a81d5ba2dbb319f1ce9d63fc2b615597d4bcfddd4a89a09", + "https://deno.land/std@0.206.0/path/join_globs.ts": "9b84d5103b63d3dbed4b2cf8b12477b2ad415c7d343f1488505162dc0e5f4db8", + "https://deno.land/std@0.206.0/path/mod.ts": "51c48d6da76cad6029b134951732025bc81910ef83f854d9e9c4581a1cc0155a", + "https://deno.land/std@0.206.0/path/normalize.ts": "aa95be9a92c7bd4f9dc0ba51e942a1973e2b93d266cd74f5ca751c136d520b66", + "https://deno.land/std@0.206.0/path/normalize_glob.ts": "674baa82e1c00b6cb153bbca36e06f8e0337cb8062db6d905ab5de16076ca46b", + "https://deno.land/std@0.206.0/path/parse.ts": "d87ff0deef3fb495bc0d862278ff96da5a06acf0625ca27769fc52ac0d3d6ece", + "https://deno.land/std@0.206.0/path/posix/_util.ts": "ecf49560fedd7dd376c6156cc5565cad97c1abe9824f4417adebc7acc36c93e5", + "https://deno.land/std@0.206.0/path/posix/basename.ts": "a630aeb8fd8e27356b1823b9dedd505e30085015407caa3396332752f6b8406a", + "https://deno.land/std@0.206.0/path/posix/common.ts": "e781d395dc76f6282e3f7dd8de13194abb8b04a82d109593141abc6e95755c8b", + "https://deno.land/std@0.206.0/path/posix/dirname.ts": "f48c9c42cc670803b505478b7ef162c7cfa9d8e751b59d278b2ec59470531472", + "https://deno.land/std@0.206.0/path/posix/extname.ts": "ee7f6571a9c0a37f9218fbf510c440d1685a7c13082c348d701396cc795e0be0", + "https://deno.land/std@0.206.0/path/posix/format.ts": "b94876f77e61bfe1f147d5ccb46a920636cd3cef8be43df330f0052b03875968", + "https://deno.land/std@0.206.0/path/posix/from_file_url.ts": "b97287a83e6407ac27bdf3ab621db3fccbf1c27df0a1b1f20e1e1b5acf38a379", + "https://deno.land/std@0.206.0/path/posix/glob_to_regexp.ts": "6ed00c71fbfe0ccc35977c35444f94e82200b721905a60bd1278b1b768d68b1a", + "https://deno.land/std@0.206.0/path/posix/is_absolute.ts": "159900a3422d11069d48395568217eb7fc105ceda2683d03d9b7c0f0769e01b8", + "https://deno.land/std@0.206.0/path/posix/is_glob.ts": "ec4fbc604b9db8487f7b56ab0e759b24a971ab6a45f7b0b698bc39b8b9f9680f", + "https://deno.land/std@0.206.0/path/posix/join.ts": "0c0d84bdc344876930126640011ec1b888e6facf74153ffad9ef26813aa2a076", + "https://deno.land/std@0.206.0/path/posix/join_globs.ts": "f4838d54b1f60a34a40625a3293f6e583135348be1b2974341ac04743cb26121", + "https://deno.land/std@0.206.0/path/posix/mod.ts": "f1b08a7f64294b7de87fc37190d63b6ce5b02889af9290c9703afe01951360ae", + "https://deno.land/std@0.206.0/path/posix/normalize.ts": "11de90a94ab7148cc46e5a288f7d732aade1d616bc8c862f5560fa18ff987b4b", + "https://deno.land/std@0.206.0/path/posix/normalize_glob.ts": "10a1840c628ebbab679254d5fa1c20e59106102354fb648a1765aed72eb9f3f9", + "https://deno.land/std@0.206.0/path/posix/parse.ts": "199208f373dd93a792e9c585352bfc73a6293411bed6da6d3bc4f4ef90b04c8e", + "https://deno.land/std@0.206.0/path/posix/relative.ts": "e2f230608b0f083e6deaa06e063943e5accb3320c28aef8d87528fbb7fe6504c", + "https://deno.land/std@0.206.0/path/posix/resolve.ts": "51579d83159d5c719518c9ae50812a63959bbcb7561d79acbdb2c3682236e285", + "https://deno.land/std@0.206.0/path/posix/separator.ts": "0b6573b5f3269a3164d8edc9cefc33a02dd51003731c561008c8bb60220ebac1", + "https://deno.land/std@0.206.0/path/posix/to_file_url.ts": "08d43ea839ee75e9b8b1538376cfe95911070a655cd312bc9a00f88ef14967b6", + "https://deno.land/std@0.206.0/path/posix/to_namespaced_path.ts": "c9228a0e74fd37e76622cd7b142b8416663a9b87db643302fa0926b5a5c83bdc", + "https://deno.land/std@0.206.0/path/relative.ts": "23d45ede8b7ac464a8299663a43488aad6b561414e7cbbe4790775590db6349c", + "https://deno.land/std@0.206.0/path/resolve.ts": "5b184efc87155a0af9fa305ff68a109e28de9aee81fc3e77cd01380f19daf867", + "https://deno.land/std@0.206.0/path/separator.ts": "40a3e9a4ad10bef23bc2cd6c610291b6c502a06237c2c4cd034a15ca78dedc1f", + "https://deno.land/std@0.206.0/path/to_file_url.ts": "edaafa089e0bce386e1b2d47afe7c72e379ff93b28a5829a5885e4b6c626d864", + "https://deno.land/std@0.206.0/path/to_namespaced_path.ts": "cf8734848aac3c7527d1689d2adf82132b1618eff3cc523a775068847416b22a", + "https://deno.land/std@0.206.0/path/windows/_util.ts": "f32b9444554c8863b9b4814025c700492a2b57ff2369d015360970a1b1099d54", + "https://deno.land/std@0.206.0/path/windows/basename.ts": "8a9dbf7353d50afbc5b221af36c02a72c2d1b2b5b9f7c65bf6a5a2a0baf88ad3", + "https://deno.land/std@0.206.0/path/windows/common.ts": "e781d395dc76f6282e3f7dd8de13194abb8b04a82d109593141abc6e95755c8b", + "https://deno.land/std@0.206.0/path/windows/dirname.ts": "5c2aa541384bf0bd9aca821275d2a8690e8238fa846198ef5c7515ce31a01a94", + "https://deno.land/std@0.206.0/path/windows/extname.ts": "07f4fa1b40d06a827446b3e3bcc8d619c5546b079b8ed0c77040bbef716c7614", + "https://deno.land/std@0.206.0/path/windows/format.ts": "343019130d78f172a5c49fdc7e64686a7faf41553268961e7b6c92a6d6548edf", + "https://deno.land/std@0.206.0/path/windows/from_file_url.ts": "d53335c12b0725893d768be3ac6bf0112cc5b639d2deb0171b35988493b46199", + "https://deno.land/std@0.206.0/path/windows/glob_to_regexp.ts": "290755e18ec6c1a4f4d711c3390537358e8e3179581e66261a0cf348b1a13395", + "https://deno.land/std@0.206.0/path/windows/is_absolute.ts": "245b56b5f355ede8664bd7f080c910a97e2169972d23075554ae14d73722c53c", + "https://deno.land/std@0.206.0/path/windows/is_glob.ts": "ec4fbc604b9db8487f7b56ab0e759b24a971ab6a45f7b0b698bc39b8b9f9680f", + "https://deno.land/std@0.206.0/path/windows/join.ts": "e6600bf88edeeef4e2276e155b8de1d5dec0435fd526ba2dc4d37986b2882f16", + "https://deno.land/std@0.206.0/path/windows/join_globs.ts": "f4838d54b1f60a34a40625a3293f6e583135348be1b2974341ac04743cb26121", + "https://deno.land/std@0.206.0/path/windows/mod.ts": "d7040f461465c2c21c1c68fc988ef0bdddd499912138cde3abf6ad60c7fb3814", + "https://deno.land/std@0.206.0/path/windows/normalize.ts": "9deebbf40c81ef540b7b945d4ccd7a6a2c5a5992f791e6d3377043031e164e69", + "https://deno.land/std@0.206.0/path/windows/normalize_glob.ts": "344ff5ed45430495b9a3d695567291e50e00b1b3b04ea56712a2acf07ab5c128", + "https://deno.land/std@0.206.0/path/windows/parse.ts": "120faf778fe1f22056f33ded069b68e12447668fcfa19540c0129561428d3ae5", + "https://deno.land/std@0.206.0/path/windows/relative.ts": "026855cd2c36c8f28f1df3c6fbd8f2449a2aa21f48797a74700c5d872b86d649", + "https://deno.land/std@0.206.0/path/windows/resolve.ts": "5ff441ab18a2346abadf778121128ee71bda4d0898513d4639a6ca04edca366b", + "https://deno.land/std@0.206.0/path/windows/separator.ts": "ae21f27015f10510ed1ac4a0ba9c4c9c967cbdd9d9e776a3e4967553c397bd5d", + "https://deno.land/std@0.206.0/path/windows/to_file_url.ts": "8e9ea9e1ff364aa06fa72999204229952d0a279dbb876b7b838b2b2fea55cce3", + "https://deno.land/std@0.206.0/path/windows/to_namespaced_path.ts": "e0f4d4a5e77f28a5708c1a33ff24360f35637ba6d8f103d19661255ef7bfd50d", "https://deno.land/x/cliffy@v1.0.0-rc.2/_utils/distance.ts": "02af166952c7c358ac83beae397aa2fbca4ad630aecfcd38d92edb1ea429f004", "https://deno.land/x/cliffy@v1.0.0-rc.2/ansi/ansi_escapes.ts": "193b3c3a4e520274bd8322ca4cab1c3ce38070bed1898cb2ade12a585dddd7c9", "https://deno.land/x/cliffy@v1.0.0-rc.2/ansi/cursor_position.ts": "caa008d29f7a904908bda514f9839bfbb7a93f2d5f5580501675b646d26a87ff", @@ -401,6 +568,45 @@ "https://deno.land/x/cliffy@v1.0.0-rc.2/prompt/_utils.ts": "498ae639d7666599d612b615ee85de9103b3c3a913d5196f6b265072674258c7", "https://deno.land/x/cliffy@v1.0.0-rc.2/prompt/deps.ts": "49fbe47307c29a56e25bf945179dbfc637de7404b0165af70135c88159e2dd03", "https://deno.land/x/cliffy@v1.0.0-rc.2/prompt/select.ts": "c10902aeaca02a55d9b846934958dd166ee39c741faebdaa9800689e402186cf", + "https://deno.land/x/dax@0.35.0/mod.ts": "3fc382546bf3c7b90aa458aa144be7c6e8aed3e8c2680289f9c8694d986b7247", + "https://deno.land/x/dax@0.35.0/src/command.ts": "6e7db06015b4ad6decbf59cc5fcb6bd4b03a46276f7e3f3472204c11b2109e0e", + "https://deno.land/x/dax@0.35.0/src/command_handler.ts": "841cee0ce12b19eea6c7fcaeaa40a9e3ef4bf50c36cf02afbe3ab7b41f8571eb", + "https://deno.land/x/dax@0.35.0/src/commands/args.ts": "a138aef24294e3cbf13cef08f4836d018e8dd99fd06ad82e7e7f08ef680bbc1d", + "https://deno.land/x/dax@0.35.0/src/commands/cat.ts": "229dc854f80ea8f1ebd811190fc31e5cf0fe39f76c2de1c27e256cb831237cb0", + "https://deno.land/x/dax@0.35.0/src/commands/cd.ts": "239fee1606881dbc3f778a761d1d4557c21a63063c15ab58883a32e7466b7177", + "https://deno.land/x/dax@0.35.0/src/commands/cp_mv.ts": "58205a82a9404e444c7c5caf98b5dd2b350c668c0b421546a038b76ea8b6a53d", + "https://deno.land/x/dax@0.35.0/src/commands/echo.ts": "247909de5b8ea20218daab419f3aad37b69763052272aca3633fe8e7f83148cd", + "https://deno.land/x/dax@0.35.0/src/commands/exit.ts": "c619e52d744dfa3e8fa954026f1c5302d8be991c775553efc85a0f224b77b6ff", + "https://deno.land/x/dax@0.35.0/src/commands/export.ts": "b6ecad1203cfe606d69da6c16736f31acf211e864e6822484d85cea1cb7d5528", + "https://deno.land/x/dax@0.35.0/src/commands/mkdir.ts": "9381ecdc0e0203d941f89027b6ef2865393bf0a66670bf5f5aaa6a49669244c7", + "https://deno.land/x/dax@0.35.0/src/commands/printenv.ts": "473c39b457cae91e9ca029ad420642b9a410257fb699674660c886c6ebe72ebc", + "https://deno.land/x/dax@0.35.0/src/commands/pwd.ts": "5438aea979027bfa5c64c2a7f1073389735ea986f6abe2174ec21bcb70a2156f", + "https://deno.land/x/dax@0.35.0/src/commands/rm.ts": "d911ff4e2e0b3d3c5d426c7b735313741ad762d9e25a743f101a1b05447eecf8", + "https://deno.land/x/dax@0.35.0/src/commands/sleep.ts": "d1183fa8e31ba85a7b88666e854c7aa6e53e1d4c65e39f20a05d8ea4b82efca3", + "https://deno.land/x/dax@0.35.0/src/commands/test.ts": "a221f82c209fd53756e9c02c475b9d5833284513853e90fdaaf0c1e1d9cfbf30", + "https://deno.land/x/dax@0.35.0/src/commands/touch.ts": "5953dbde8732da47ade9b7554a638ea06a8b67a59842e638fb79f7aebe392650", + "https://deno.land/x/dax@0.35.0/src/commands/unset.ts": "8d4abb29f53c3de0c10ba6d51e3d55bce745160f7430396ede58156e8f2b747c", + "https://deno.land/x/dax@0.35.0/src/common.ts": "c0e809c591400dbadb25197f2819c59fec6b897c94c1aba6a026d5d1eee9cb53", + "https://deno.land/x/dax@0.35.0/src/console/confirm.ts": "d9128d10b77fcc0a8df2784f71c79df68f5c8e00a34b04547b9ba9ddf1c97f96", + "https://deno.land/x/dax@0.35.0/src/console/logger.ts": "e0ab5025915cef70df03681c756e211f25bb2e4331f82ed4256b17ddd9e794ea", + "https://deno.land/x/dax@0.35.0/src/console/mod.ts": "29ae1f8250b74a477e26a3b6ccf647badf5d8f8e2a9e6c4aa0d5df9e3bbbb273", + "https://deno.land/x/dax@0.35.0/src/console/multiSelect.ts": "31003744e58f45f720271bd034d8cfba1055c954ba02d77a2f2eb21e4c1ed55a", + "https://deno.land/x/dax@0.35.0/src/console/progress/format.ts": "15ddbb8051580f88ed499281e12ca6f881f875ab73268d7451d7113ee130bd7d", + "https://deno.land/x/dax@0.35.0/src/console/progress/interval.ts": "80188d980a27c2eb07c31324365118af549641442f0752fe7c3b0c91832e5046", + "https://deno.land/x/dax@0.35.0/src/console/progress/mod.ts": "70080a5d06ab2c58e948225e1e5144458fbc36fbfa61672ac82bb2f6c6991bad", + "https://deno.land/x/dax@0.35.0/src/console/prompt.ts": "78c645b41a7562133d05a10901ae4d682cb22bfaf0b5a21cc8475ca2a946aee1", + "https://deno.land/x/dax@0.35.0/src/console/select.ts": "c9d7124d975bf34d52ea1ac88fd610ed39db8ee6505b9bb53f371cef2f56c6ab", + "https://deno.land/x/dax@0.35.0/src/console/utils.ts": "954c99397dcd2cb3f1ccf50055085f17c9ffb31b25b3c5719776de81e23935f4", + "https://deno.land/x/dax@0.35.0/src/deps.ts": "709fcfef942331cbc97c1faf37dbff8b97c411fac1d142106027ca5bbe64df59", + "https://deno.land/x/dax@0.35.0/src/lib/mod.ts": "c992db99c8259ae3bf2d35666585dfefda84cf7cf4e624e42ea2ac7367900fe0", + "https://deno.land/x/dax@0.35.0/src/lib/rs_lib.generated.js": "381f2f60b458bcb0a6fec1310c2c3b6447339f6995df206b9a4d0c3747ee8c36", + "https://deno.land/x/dax@0.35.0/src/path.ts": "5e1ea6139a975d31d6a5ca62c96c095ff7ddcf5c34ef8b75ab0ea04f87ac579b", + "https://deno.land/x/dax@0.35.0/src/pipes.ts": "3aa984c0d031f4221953e228ba89452a86068a80d2811fddb9c60737cd4ab174", + "https://deno.land/x/dax@0.35.0/src/request.ts": "a2b20859de7a0fbe10584a41de435942ee4726f0b637b1cb55d7f632f4efc74f", + "https://deno.land/x/dax@0.35.0/src/result.ts": "0908b69c16b25c3b258f6b2ada12e124686df5f7ea2b98daa27a83973c7b118c", + "https://deno.land/x/dax@0.35.0/src/shell.ts": "9475a015d5493197f9611b1259c5dd6d27c7c2ab9c3711606cd4b47412568ee1", + "https://deno.land/x/outdent@v0.8.0/src/index.ts": "6dc3df4108d5d6fedcdb974844d321037ca81eaaa16be6073235ff3268841a22", + "https://deno.land/x/which@0.3.0/mod.ts": "3e10d07953c14e4ddc809742a3447cef14202cdfe9be6678a1dfc8769c4487e6", "https://deno.land/x/zipjs@v2.6.62/index.d.ts": "2ac15045c3ada9b80e335597c72fe3248375abcd87efa357725a1aa028a9bde2", "https://deno.land/x/zipjs@v2.6.62/index.js": "7c71926e0c9618e48a22d9dce701131704fd3148a1d2eefd5dba1d786c846a5f", "https://deno.land/x/zipjs@v2.6.62/lib/core/codec-pool.js": "54101f231bcf4f206b050842cf277e71c31cfaccbe789a9b1b1b0b3b3b03e0a2", diff --git a/fileinfo.ts b/fileinfo.ts index 9ecae83..7ff046c 100644 --- a/fileinfo.ts +++ b/fileinfo.ts @@ -1,22 +1,26 @@ -import * as path from "https://deno.land/std@0.196.0/path/mod.ts"; -import { walk } from "https://deno.land/std@0.196.0/fs/mod.ts"; -import { Select } from "https://deno.land/x/cliffy@v1.0.0-rc.2/prompt/select.ts"; -import { format as formatBytes } from "https://deno.land/std@0.196.0/fmt/bytes.ts"; -import { crypto, toHashString } from "https://deno.land/std/crypto/mod.ts"; -import { stripTrailingSeparators } from "https://deno.land/std@0.196.0/path/_util.ts"; - -let dir = Array.from(Deno.readDirSync(".")) - .filter((v) => v.isFile && path.extname(v.name) == ".exe") +import $ from "dax"; +import { format as formatBytes } from "std/fmt/bytes.ts"; +import { crypto } from "std/crypto/mod.ts"; +import { encodeHex } from "std/encoding/hex.ts"; + +$.setPrintCommand(true); + +const dir = Array.from($.path(".").readDirFilePathsSync()) + .filter((v) => v.isFileSync() && v.extname() == ".exe") .map((v) => ({ - name: v.name, - time: Deno.statSync(v.name).mtime?.valueOf() || 0, + path: v, + time: v.statSync()?.mtime?.valueOf() || 0, })) .sort((a, b) => b.time - a.time) - .map((v) => v.name); -const file: string = await Select.prompt({ - message: "Pick a file", - options: dir, -}); + .map((v) => v.path); + +const file = + dir[ + await $.select({ + message: "Pick a file", + options: dir.map((v) => v.basename()), + }) + ]; function formatSize(size: number): string { return formatBytes(size, { @@ -26,26 +30,22 @@ function formatSize(size: number): string { .replace("i", ""); } -const downloadSize = formatSize((await Deno.stat(file)).size); -const hash = toHashString( - await crypto.subtle.digest("MD5", await Deno.readFile(file)) +const downloadSize = formatSize((await file.stat())?.size || 0); +const hash = encodeHex( + await crypto.subtle.digest("MD5", await file.readBytes()) ); -const tempDir = await Deno.makeTempDir(); -await new Deno.Command(".\\" + file, { - args: [`/DESTINATION=${tempDir}\\`], -}).output(); +const tempDir = $.path(await Deno.makeTempDir()); +await $`${file} /DESTINATION=${tempDir}\\`; let tempSize = 0; -for await (const entry of walk(tempDir)) { +for await (const entry of tempDir.walk()) { if (entry.isDirectory) continue; - const stat = await Deno.stat(entry.path); - tempSize += stat.size; + const stat = await entry.path.stat(); + tempSize += stat?.size || 0; } const installedSize = formatSize(tempSize); -await Deno.remove(tempDir, { recursive: true }); +await tempDir.remove({ recursive: true }); -console.log(` -[${downloadSize} download / ${installedSize} installed] -(MD5: ${hash}) -`); +$.log(`[${downloadSize} download / ${installedSize} installed] +(MD5: ${hash})`); diff --git a/make.bat b/make.bat deleted file mode 100644 index 206b832..0000000 --- a/make.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -echo Creating launcher... -PortableApps.comLauncher\PortableApps.comLauncherGenerator.exe %CD%\PrismLauncherPortable -echo Creating installer... -PortableApps.comInstaller\PortableApps.comInstaller.exe %CD%\PrismLauncherPortable diff --git a/make_launcher.bat b/make_launcher.bat deleted file mode 100644 index 6934afd..0000000 --- a/make_launcher.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -start PortableApps.comLauncher\PortableApps.comLauncherGenerator.exe %CD%\PrismLauncherPortable diff --git a/test_launcher.bat b/test_launcher.bat deleted file mode 100644 index 0a11671..0000000 --- a/test_launcher.bat +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -PortableApps.comLauncher\PortableApps.comLauncherGenerator.exe %CD%\PrismLauncherPortable -del PrismLauncherPortable\Data\debug.log -start %CD%\PrismLauncherPortable\PrismLauncherPortable.exe diff --git a/update.ts b/update.ts index 233883d..00f7949 100644 --- a/update.ts +++ b/update.ts @@ -1,16 +1,14 @@ import { z } from "zod"; - -import { join } from "std/path/mod.ts"; -import { ensureDir } from "std/fs/mod.ts"; -import { grantOrThrow } from "std/permissions/mod.ts"; - +import $ from "dax"; +import { grantOrThrow } from "permissions"; import ini from "ini"; import { ZipReader, HttpReader, Uint8ArrayWriter } from "zipjs"; -const GitHubTag = z.object({ - name: z.string(), +$.setPrintCommand(true); + +const GitHubRelease = z.object({ + tag_name: z.string(), }); -const GitHubTags = GitHubTag.array(); const AppInfoIni = z.object({ Version: z.object({ @@ -20,20 +18,20 @@ const AppInfoIni = z.object({ }); type AppInfoIni = z.infer; -const latestVersion = GitHubTags.parse( - await ( - await fetch("https://api.github.com/repos/PrismLauncher/PrismLauncher/tags") +const latestVersion = GitHubRelease.parse( + await $.request( + "https://api.github.com/repos/PrismLauncher/PrismLauncher/releases/latest" ).json() -)[0].name; +).tag_name; -const appPath = join("PrismLauncherPortable", "App"); +const appPath = $.path("PrismLauncherPortable").join("App"); await grantOrThrow( - { name: "read", path: appPath }, - { name: "write", path: appPath } + { name: "read", path: appPath.toString() }, + { name: "write", path: appPath.toString() } ); -const iniPath = join(appPath, "AppInfo", "appinfo.ini"); -const appinfo = ini.parse(await Deno.readTextFile(iniPath)); +const iniPath = appPath.join("AppInfo", "appinfo.ini"); +const appinfo = ini.parse(await iniPath.readText()); AppInfoIni.parse(appinfo); const versionArray = appinfo.Version.PackageVersion.split("."); @@ -43,15 +41,14 @@ const updateAvailable = currentVersion != latestVersion; const updateNum = updateAvailable ? 0 : parseInt(versionArray[2]) + 1; appinfo.Version.DisplayVersion = `${latestVersion} Update ${updateNum}`; appinfo.Version.PackageVersion = `${latestVersion}.${updateNum}.0`; -console.log( +$.log( `New version: ${appinfo.Version.DisplayVersion} (${appinfo.Version.PackageVersion})` ); -if (confirm("Update appinfo.ini?")) { - await Deno.writeTextFile(iniPath, ini.stringify(appinfo)); - console.log("Updated appinfo.ini"); +if (await $.confirm("Update appinfo.ini?")) { + await iniPath.writeText(ini.stringify(appinfo)); + $.logStep("Updated appinfo.ini"); } -console.log(); type Download = { dir: string; @@ -75,47 +72,49 @@ const gitignore = ` !.gitignore `.trimStart(); -if (updateAvailable || confirm("Redownload Prism Launcher?")) { - for await (const entry of Deno.readDir(appPath)) { +if (updateAvailable || (await $.confirm("Redownload Prism Launcher?"))) { + $.logLight("Downloading..."); + + for await (const entry of appPath.readDir()) { if (!entry.isDirectory) continue; if (entry.name == "AppInfo") continue; - const path = join(appPath, entry.name); - await Deno.remove(path, { recursive: true }); + const path = appPath.join(entry.name); + await path.remove({ recursive: true }); } for (const download of downloads) { - const path = join(appPath, download.dir); + const path = appPath.join(download.dir); const url = `${urlBase}/${download.filename}`; const zipReader = new ZipReader(new HttpReader(url)); const entries = await zipReader.getEntries(); - console.log("Downloaded", download.filename); - await ensureDir(path); - await Deno.writeTextFile(join(path, ".gitignore"), gitignore); + $.logStep("Downloaded", download.filename); + await path.ensureDir(); + await path.join(".gitignore").writeText(gitignore); for (const entry of entries) { if (!entry.getData) continue; if (entry.filename == "prismlauncher_updater.exe") continue; const uint8 = await entry.getData(new Uint8ArrayWriter()); - const filePath = join(path, entry.filename); + const filePath = path.join(entry.filename); - if (entry.directory) await Deno.mkdir(filePath); - else await Deno.writeFile(filePath, uint8); + if (entry.directory) await filePath.mkdir(); + else await filePath.write(uint8); } } } -console.log(); -if (updateAvailable || confirm("Create launcher and installer?")) { - const p = new Deno.Command("./make.bat"); - await p.output(); +if (updateAvailable || (await $.confirm("Create launcher and installer?"))) { + $.logStep("Creating launcher"); + await $`PortableApps.comLauncher/PortableApps.comLauncherGenerator.exe $PWD\\PrismLauncherPortable`; + $.logStep("Creating installer"); + await $`PortableApps.comInstaller/PortableApps.comInstaller.exe $PWD\\PrismLauncherPortable`; } -console.log(); -console.log( +$.log( `- ${ updateAvailable ? "Update to" : "Still using" } [Prism Launcher ${latestVersion}](https://github.com/PrismLauncher/PrismLauncher/releases/tag/${latestVersion})` From 501ed2b6d20171399c268ea6fd7f8453f1410810 Mon Sep 17 00:00:00 2001 From: RuiNtD Date: Fri, 10 Nov 2023 16:12:29 -0700 Subject: [PATCH 2/2] Update README --- README.md | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c7e2d25..bd9f19c 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,48 @@ [![][release-badge]][download]\ [![][prism-badge]][prism launcher] +[release-badge]: https://img.shields.io/github/v/release/RuiNtD/PrismLauncherPortable?label=Prism+Launcher+Portable&style=for-the-badge +[prism-badge]: https://img.shields.io/github/v/release/PrismLauncher/PrismLauncher?label=Prism+Launcher&style=for-the-badge + - [Download] - [Help] - [Prism Launcher] +[download]: https://github.com/RuiNtD/PrismLauncherPortable/releases/latest +[help]: https://RuiNtD.github.io/PrismLauncherPortable/PrismLauncherPortable/help.html +[prism launcher]: https://prismlauncher.org/ + # Portable Java -PortableApps.com has several portable versions of Java that can be esaily +**TL;DR:** [OpenJDK JRE 64-bit] and [jPortable (64-bit)] (for Minecraft 1.16.5 or older) are recommended. + +PortableApps.com has several portable versions of Java that can be easily installed and updated from the [PortableApps.com Platform](https://portableapps.com/download). They can be found in the Utilities category and will be automatically detected by Prism Launcher Portable. - -| App Name | Java Version | -| ----------- | ------------ | -| jdkPortable | JDK 8 | -| jPortable | JRE 8 | -| OpenJDK | JDK 17 | -| OpenJDK JRE | JRE 17 | - -The 64-bit versions of both OpenJDK JRE and jPortable are recommended for Minecraft. -The JDK versions contain extra developer tools that you likely don't need. +The 32-bit versions are likely to crash on newer versions of Minecraft and are not recommended +and the JDK versions contain extra developer tools that you likely don't need. + +| App Name | Java Version | Minecraft Version | +| ---------------------- | ---------------- | ------------------ | +| [OpenJDK JRE 64-bit] | Java 17 (64-bit) | MC 1.17 or newer | +| [jPortable (64-bit)] | Java 8 (64-bit) | MC 1.16.5 or older | +| [OpenJDK 64-bit] | JDK 17 (64-bit) | MC 1.17 or newer | +| [jdkPortable (64-bit)] | JDK 8 (64-bit) | MC 1.16.5 or older | +| [OpenJDK JRE] | Java 17 (32-bit) | MC 1.17 or newer | +| [jPortable] | Java 8 (32-bit) | MC 1.16.5 or older | +| [OpenJDK] | JDK 17 (32-bit) | MC 1.17 or newer | +| [jdkPortable] | JDK 8 (32-bit) | MC 1.16.5 or older | + +[jdkPortable]: https://portableapps.com/apps/utilities/jdkportable +[jdkPortable (64-bit)]: https://portableapps.com/apps/utilities/jdkportable64 +[jPortable]: https://portableapps.com/apps/utilities/java_portable +[jPortable (64-bit)]: https://portableapps.com/apps/utilities/java_portable_64 +[OpenJDK]: https://portableapps.com/apps/utilities/OpenJDK +[OpenJDK 64-bit]: https://portableapps.com/apps/utilities/OpenJDK64 +[OpenJDK JRE]: https://portableapps.com/apps/utilities/OpenJDKJRE +[OpenJDK JRE 64-bit]: https://portableapps.com/apps/utilities/OpenJDKJRE64 # Migrating from PolyMC Portable Just copy or move your `Data` folder from `PolyMCPortable` to `PrismLauncherPortable` \ You may have to remove and re-add your accounts before you can launch the game - -[download]: https://github.com/RuiNtD/PrismLauncherPortable/releases/latest -[help]: https://RuiNtD.github.io/PrismLauncherPortable/PrismLauncherPortable/help.html -[prism launcher]: https://prismlauncher.org/ -[release-badge]: https://img.shields.io/github/v/release/RuiNtD/PrismLauncherPortable?label=Prism+Launcher+Portable&style=for-the-badge -[prism-badge]: https://img.shields.io/github/v/release/PrismLauncher/PrismLauncher?label=Prism+Launcher&style=for-the-badge