added submodule
This commit is contained in:
parent
da349d6d9c
commit
b0d563835b
8 changed files with 23 additions and 17 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "src/xrsh-apps"]
|
||||
path = src/xrsh-apps
|
||||
url = https://forgejo.isvery.ninja/xrsh/xrsh-apps.git
|
||||
22
README.md
22
README.md
|
|
@ -8,21 +8,23 @@ See [the wiki here](https://forgejo.isvery.ninja/xrsh/xrsh/wiki/Home#milestones)
|
|||
|
||||
## Install
|
||||
|
||||
No need! Just surf to the public version [here](https://coderofsalvation.github.io/xrsh) or download the [standalone binary](https://) in the releases section <br>
|
||||
The apps live in the [apps-repo](https://github.com/coderofsalvation/xrsh-apps).<br>
|
||||
|
||||
> NOTE: installation not needed, just surf to the public version [here](https://coderofsalvation.github.io/xrsh)
|
||||
|
||||
1. Download [xrsh.com](https://forgejo.isvery.ninja/xrsh/xrsh/raw/branch/main/xrsh.com)
|
||||
2. run `chmod +x xrsh.com` in your console
|
||||
3. run `./xrsh.com`
|
||||
4. Profit! ✔
|
||||
|
||||
## Developers
|
||||
|
||||
Make sure to clone the repo including the [xrsh-apps](https://forgejo.isvery.ninja/xrsh-apps) repo
|
||||
|
||||
```
|
||||
$ git clone https://forgejo.isvery.ninja/xrsh/xrsh
|
||||
$ git clone https://forgejo.isvery.ninja/xrsh/xrsh-apps
|
||||
$ cd xrsh/src
|
||||
$ ln -s ../../xrsh-apps/app .
|
||||
$ ln -s ../../xrsh-apps/com .
|
||||
$ git clone --recurse-submodules https://forgejo.isvery.ninja/xrsh/xrsh
|
||||
$ cd xrsh
|
||||
```
|
||||
|
||||
> now surf to xrsh/src/index.html
|
||||
> Now serve the repo from a HTTPS webserver (for example run `./make dev`)
|
||||
|
||||
<b>developers:</b> run `./make dev` (spins up a [redbean.com](https://redbean.dev) https-server)
|
||||
|
||||
> NOTE: if you value optimization over prototype-ability, you can minify the code by running `cd src && npm install parcel && parcel index.html`
|
||||
|
|
|
|||
11
make
11
make
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
REDBEAN_VERSION=https://redbean.dev/redbean-2.2.com
|
||||
APP=xrsh
|
||||
DIR=$(dirname $(readlink -f $0))
|
||||
|
||||
export PATH=$PATH:.
|
||||
silent(){ "$@" 1>/dev/null 2>/dev/null; }
|
||||
|
|
@ -18,21 +19,17 @@ standalone(){
|
|||
test -f ${APP}.com || install
|
||||
cd src
|
||||
set -x
|
||||
zip -r ../${APP}.com *
|
||||
zip -x "*.git*" -r ../${APP}.com *
|
||||
ls -lah ../${APP}.com
|
||||
}
|
||||
|
||||
dev(){
|
||||
test -d xrsh-apps || git clone https://forgejo.isvery.ninja/xrsh/xrsh-apps
|
||||
cd src
|
||||
ln -s ../xrsh-apps/app .
|
||||
ln -s ../xrsh-apps/com .
|
||||
cd -
|
||||
test -d src/xrsh-apps || git submodule update --init --recursive
|
||||
cd /tmp
|
||||
test -f redbean.com || wget "$REDBEAN_VERSION" -O redbean.com && chmod 755 redbean.com
|
||||
test -f cert.pem || openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
|
||||
cd -
|
||||
cd "$dir"
|
||||
cd "$DIR"
|
||||
/tmp/redbean.com -c 0 -C /tmp/cert.pem -K /tmp/key.pem -D . "$@"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
nodejs_20
|
||||
cosmopolitan
|
||||
zip
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
1
src/app
Symbolic link
1
src/app
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
xrsh-apps/app
|
||||
1
src/com
Symbolic link
1
src/com
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
xrsh-apps/com
|
||||
1
src/xrsh-apps
Submodule
1
src/xrsh-apps
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 1832cd18fe21fc21bfdefb6e5d8ac6e82c21a75f
|
||||
BIN
xrsh.com
Executable file
BIN
xrsh.com
Executable file
Binary file not shown.
Loading…
Add table
Reference in a new issue