nwtgck / piping-ssh-web

SSH over HTTPS via Piping Server on Web browser
https://piping-ssh.nwtgck.org
MIT License
102 stars 4 forks source link

How to build code? #225

Closed ParkerOu closed 4 months ago

ParkerOu commented 4 months ago

Because npm audit shows CVEs, I tried to upgrade package versions or switch packages, but found that the specified paths and folders couldn't be located. repo: https://github.com/ParkerOu/piping-ssh-web

npm run serve

shows

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ssh/connection.go b/ssh/connection.go
|index 8f345ee..7d7204b 100644
|--- a/ssh/connection.go
|+++ b/ssh/connection.go
--------------------------
File to patch:

Apparently, there is no ssh subdirectory and connection.go file under golang-crypto. How should the project be initialized?

nwtgck commented 4 months ago

Thanks for the issue. I'll upgrade pacakages.

How should the project be initialized?

This repository uses git submodules. You can use git clone --recursive <this repo> OR cd <this repo> && git submodule update --init --recursive

nwtgck commented 4 months ago

I updated:

ParkerOu commented 4 months ago

After building the code, there are three files: main.wasm, wasm_exec.js, and index.html. How could I set up piping-ssh-web? I haven't used WebAssembly before and would like to try setting it up using pm2 + nginx.

nwtgck commented 4 months ago

You can find how to build in the CI:

You will get ./dist after building.