produce other binaries
Massimo Melina committed
Mar 13, 2022 at 19:15 UTC
5195889d29ba8a7a362bb8a418e4130d3cf31c85
4 files changed
+13
-14
README.md
+8
-10
@@ -44,20 +44,18 @@ As you can see from the list above, we already have some goods that you can't fi
44
45
# Installation
46
47
-## Windows
48
-
47
1. go on https://github.com/rejetto/hfs/releases
50
-2. **download** the latest version zip with "exe" in the name
51
-3. **unzip** somewhere on your computer. You actually need only the exe, the plugins folder is optional.
52
-4. **double click** on `hfs.exe`
48
+2. **download** the latest version in a folder you choose
49
+ * if you have Windows, download `exe` version
50
+ * else download release for your system, if available
51
+3. run the file
52
54
-## Linux / Mac
53
+If your system is not covered, you can try this alternative version:
54
55
1. install node.js version 16+ from https://nodejs.org/
57
-2. download and unzip the latest package from https://github.com/rejetto/hfs/releases/
58
-3. chmod +x run.bat
59
-
60
-you are now ready to launch `run.bat`
56
+2. download and unzip the latest package named `hfsVERSION.zip` from https://github.com/rejetto/hfs/releases/
57
+3. chmod +x run
58
+4. launch `./run`
59
60
# Building instructions
61
afterbuild.js
+1
-1
@@ -32,7 +32,7 @@ fs.unlinkSync(dist+'package.json')
32
fs.unlinkSync(dist+'package-lock.json')
33
34
{
35
- const fn = dist+'run.bat'
35
+ const fn = dist+'run'
36
console.log(fn)
37
fs.writeFileSync(fn, 'node src')
38
fs.chmodSync(fn, 0o755)
package.json
+4
-2
@@ -22,7 +22,7 @@
22
"build-admin": "cd admin && npm run build",
23
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
24
"zip-dist": "cd dist && zip hfs.zip -r * -x *.zip *.exe",
25
- "exe-dist": "pkg . -C brotli && cd dist && zip hfs.exe.zip hfs.exe LICENSE.txt -r plugins",
25
+ "exe-dist": "pkg . -C brotli && cd dist && mv -f hfs-win.exe hfs.exe && zip plugins.zip -r plugins",
26
"new-dist": "npm run build-all && npm run zip-dist && npm run exe-dist"
27
},
28
"engines": {
@@ -44,7 +44,9 @@
44
"dist/frontend/**/*"
45
],
46
"targets": [
47
- "node16-win"
47
+ "node16-win",
48
+ "node16-mac",
49
+ "node16-linux"
50
],
51
"outputPath": "dist"
52
}
todo.md
-1
@@ -1,5 +1,4 @@
1
# To do
2
-- mac/linux binary
2
- admin/fs: support insert/delete key
3
- if specified config is a folder, check for file config.yaml inside
4
- merge accounts in config