mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
3b60ca35c4
commit
e352d79c58
12
etc/miss.sh
12
etc/miss.sh
@ -17,14 +17,14 @@ ish_miss_prepare_project
|
|||||||
# ish_miss_prepare wubi-dict
|
# ish_miss_prepare wubi-dict
|
||||||
# ish_miss_prepare word-dict
|
# ish_miss_prepare word-dict
|
||||||
|
|
||||||
ish_miss_prepare go-sql-mysql
|
# ish_miss_prepare go-sql-mysql
|
||||||
ish_miss_prepare go-qrcode
|
# ish_miss_prepare go-qrcode
|
||||||
ish_miss_prepare creackpty
|
# ish_miss_prepare creackpty
|
||||||
ish_miss_prepare websocket
|
# ish_miss_prepare websocket
|
||||||
ish_miss_prepare webview
|
# ish_miss_prepare webview
|
||||||
# ish_miss_prepare echarts
|
# ish_miss_prepare echarts
|
||||||
# ish_miss_prepare icons
|
# ish_miss_prepare icons
|
||||||
ish_miss_prepare gogit
|
# ish_miss_prepare gogit
|
||||||
|
|
||||||
ish_miss_prepare linux-story
|
ish_miss_prepare linux-story
|
||||||
ish_miss_prepare nginx-story
|
ish_miss_prepare nginx-story
|
||||||
|
21
src/main.sh
21
src/main.sh
@ -6,31 +6,20 @@ _down_tar() { # 下载文件 file path
|
|||||||
_down_tars() { # 下载文件 file...
|
_down_tars() { # 下载文件 file...
|
||||||
for file in "$@"; do _down_tar $file publish/$file; done
|
for file in "$@"; do _down_tar $file publish/$file; done
|
||||||
}
|
}
|
||||||
prepare_package() {
|
|
||||||
_down_tars contexts.bin.tar.gz contexts.src.tar.gz
|
|
||||||
local back=$PWD; cd ~/; _down_tars contexts.home.tar.gz; cd $back
|
|
||||||
export VIM=$PWD/usr/install/vim-vim-12be734/_install/share/vim/vim82/
|
|
||||||
export LD_LIBRARY_PATH=$PWD/usr/local/lib
|
|
||||||
|
|
||||||
ish_sys_path_load
|
|
||||||
git config --global init.templatedir $PWD/usr/install/git-2.31.1/_install/share/git-core/templates/
|
|
||||||
git config --global url."$ctx_dev".insteadOf https://shylinux.com
|
|
||||||
git config --global init.defaultBranch master
|
|
||||||
}
|
|
||||||
main() {
|
main() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
app) # 生产环境
|
app) # 生产环境
|
||||||
# export ctx_log=/dev/stdout
|
# export ctx_log=/dev/stdout
|
||||||
shift && prepare_ice && bin/ice.bin forever start dev dev "$@"
|
# shift && prepare_ice && bin/ice.bin forever start dev dev "$@"
|
||||||
# shift && prepare_ice && while true; do
|
shift && prepare_ice && while echo; do
|
||||||
# bin/ice.bin serve start dev dev "$@" && break
|
bin/ice.bin serve start dev dev "$@" && break
|
||||||
# done
|
done
|
||||||
;;
|
;;
|
||||||
dev) # 开发环境
|
dev) # 开发环境
|
||||||
shift && prepare_system
|
shift && prepare_system
|
||||||
git config --global url."$ctx_dev".insteadOf https://shylinux.com
|
git config --global url."$ctx_dev".insteadOf https://shylinux.com
|
||||||
git clone https://shylinux.com/x/contexts
|
git clone https://shylinux.com/x/contexts
|
||||||
cd contexts && source etc/miss.sh "$@"
|
cd contexts && source etc/miss.sh dev dev "$@"
|
||||||
;;
|
;;
|
||||||
cmd) # 命令环境
|
cmd) # 命令环境
|
||||||
ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@"
|
ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@"
|
||||||
|
@ -31,6 +31,14 @@
|
|||||||
"type": "link"
|
"type": "link"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"5aa1ad": {
|
||||||
|
"meta": {
|
||||||
|
"name": "app",
|
||||||
|
"text": "export ctx_dev=http://192.168.8.145:9020; temp=$(mktemp); if curl -h \u0026\u003e/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp app username harveyshao usernick \"码神\"",
|
||||||
|
"time": "2023-03-01 12:45:08",
|
||||||
|
"type": "shell"
|
||||||
|
}
|
||||||
|
},
|
||||||
"65cc8f": {
|
"65cc8f": {
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "192.168.10.1",
|
"name": "192.168.10.1",
|
||||||
@ -38,5 +46,13 @@
|
|||||||
"time": "2023-03-01 12:06:48",
|
"time": "2023-03-01 12:06:48",
|
||||||
"type": "link"
|
"type": "link"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"7cb6c6": {
|
||||||
|
"meta": {
|
||||||
|
"name": "dev",
|
||||||
|
"text": "export ctx_dev=http://192.168.8.145:9020; temp=$(mktemp); if curl -h \u0026\u003e/dev/null; then curl -o $temp -fsSL $ctx_dev; else wget -O $temp -q $ctx_dev; fi; source $temp dev username harveyshao usernick \"码神\"",
|
||||||
|
"time": "2023-03-01 12:45:26",
|
||||||
|
"type": "shell"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user