holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble installing zip and unzip wasm commands

Emasoft opened this issue · comments

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?

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

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.

commented

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

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.

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

Wow, that's AMAZING! 👍😄