holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
599 stars 22 forks source link

Trouble installing zip and unzip wasm commands #21

Open Emasoft opened 2 years ago

Emasoft commented 2 years ago

I have some trouble installing zip and unzip wasm commands:

[~/Documents/bin]$ ls -alh
total 0
drwxr-xr-x   4 mobile  mobile   128B Jun 21 22:19 .
drwxr-xr-x  20 mobile  mobile   640B Jun 21 22:19 ..
-rw-r--r--   1 mobile  mobile     0B Jun 21 22:19 unzip.wasm
-rw-r--r--   1 mobile  mobile     0B Jun 21 22:19 zip.wasm
[~/Documents/bin]$ zip
wasm: Error at line 59, column 37: RuntimeError: Unreachable code should not be executed (evaluating 'wasm.lowerI64Imports(retptr, passArray8ToWasm(wasm_binary), WASM_VECT
OR_LEN)')
[~/Documents/bin]$ unzip
wasm: Error at line 59, column 37: RuntimeError: Unreachable code should not be executed (evaluating 'wasm.lowerI64Imports(retptr, passArray8ToWasm(wasm_binary), WASM_VECT
OR_LEN)')
[~/Documents/bin]$ 

I copied them in the Documents/bin folder, as instructed. What I'm doing wrong?

holzschu commented 2 years ago

That looks like a command that was not downloaded properly. If downloading from inside a-Shell, you need to use curl -OL ....

Emasoft commented 2 years ago

Thanks, now they work. I used the following curl commands:

[~/Documents/bin]$ curl -OL https://github.com/holzschu/a-Shell-commands/releases/download/0.1/unzip.wasm
[~/Documents/bin]$ curl -OL https://github.com/holzschu/a-Shell-commands/releases/download/0.1/zip.wasm

Before I forgot the L flag. You should add a shell script to automatically download and install the extra commands, to save the troubles.

ZakGhost354313 commented 2 years ago

I simply tapped on the zip link and moved the file from my Downloads folder to a new On My IPhone/a-Shell/bin Folder. And it worked perfectly fine for me

Emasoft commented 2 years ago

An official shell script would be better to avoid mixups. It would also be updated with any new command at each release. Keeping track of those many files is troublesome.

holzschu commented 2 years ago

By the way, we now have an official shell script for installation. "pkg" will download and install the commands and their man pages.

Emasoft commented 2 years ago

Wow, that's AMAZING! 👍😄