aboutsummaryrefslogtreecommitdiff
path: root/sql/mac/deps/extract.js
diff options
context:
space:
mode:
authorStarscouts <starscouts@equestria.dev>2024-07-02 22:23:01 +0200
committerStarscouts <starscouts@equestria.dev>2024-07-02 22:23:01 +0200
commit04527db1831299fb3cba5c3127fd462939b448cf (patch)
treef4893e7b64faf9e23adf36f676fc6e30e745a784 /sql/mac/deps/extract.js
parentce613801c07c90d3e886fd6002f6e8f833589632 (diff)
downloadfaunerie-04527db1831299fb3cba5c3127fd462939b448cf.tar.gz
faunerie-04527db1831299fb3cba5c3127fd462939b448cf.tar.bz2
faunerie-04527db1831299fb3cba5c3127fd462939b448cf.zip
Cancel Rust rewrite3.1.0
Diffstat (limited to 'sql/mac/deps/extract.js')
-rwxr-xr-xsql/mac/deps/extract.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/mac/deps/extract.js b/sql/mac/deps/extract.js
new file mode 100755
index 0000000..46aed47
--- /dev/null
+++ b/sql/mac/deps/extract.js
@@ -0,0 +1,10 @@
+const tar = require("tar");
+const path = require("path");
+const tarball = path.resolve(process.argv[2]);
+const dirname = path.resolve(process.argv[3]);
+
+tar.extract({
+ sync: true,
+ file: tarball,
+ cwd: dirname,
+});