forked from x/ContextOS
opt some
This commit is contained in:
parent
ea221a7a22
commit
f310949291
14
Makefile
14
Makefile
@ -1,19 +1,13 @@
|
|||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
publish = usr/publish/ice.$(shell go env GOOS).$(shell go env GOARCH)
|
|
||||||
binarys = bin/ice.bin
|
binarys = bin/ice.bin
|
||||||
|
publish = usr/publish/ice.$(shell go env GOOS).$(shell go env GOARCH)
|
||||||
|
|
||||||
all: def
|
all: def
|
||||||
@echo && date
|
@echo && date
|
||||||
go build -v -o ${binarys} src/main.go src/version.go src/binpack.go && ./${binarys} forever restart &>/dev/null
|
go build -v -o ${binarys} src/main.go src/version.go src/binpack.go && ./${binarys} forever restart &>/dev/null
|
||||||
mkdir -p $(dir ${publish}) &>/dev/null; rm ${publish} &>/dev/null; cp ${binarys} ${publish}
|
mkdir -p $(dir ${publish}) &>/dev/null; rm ${publish} &>/dev/null; cp ${binarys} ${publish}
|
||||||
|
|
||||||
mipsle:
|
|
||||||
GOOS=linux GOARCH=mipsle go build -o usr/publish/ice.linux.mipsle src/main.go src/version.go src/binpack.go
|
|
||||||
|
|
||||||
arm:
|
|
||||||
GOOS=linux GOARCH=arm go build -o usr/publish/ice.linux.arm src/main.go src/version.go src/binpack.go
|
|
||||||
|
|
||||||
def:
|
def:
|
||||||
@ [ -f src/version.go ] || echo "package main" > src/version.go
|
@ [ -f src/version.go ] || echo "package main" > src/version.go
|
||||||
@ [ -f src/binpack.go ] || echo "package main" > src/binpack.go
|
@ [ -f src/binpack.go ] || echo "package main" > src/binpack.go
|
||||||
@ -24,6 +18,12 @@ app:
|
|||||||
# rm -f usr/publish/ContextsInstall.dmg
|
# rm -f usr/publish/ContextsInstall.dmg
|
||||||
# hdiutil convert usr/publish/tmp.dmg -format UDZO -o usr/publish/ContextsInstall.dmg
|
# hdiutil convert usr/publish/tmp.dmg -format UDZO -o usr/publish/ContextsInstall.dmg
|
||||||
|
|
||||||
|
arm:
|
||||||
|
GOOS=linux GOARCH=arm go build -o usr/publish/ice.linux.arm src/main.go src/version.go src/binpack.go
|
||||||
|
|
||||||
|
mipsle:
|
||||||
|
GOOS=linux GOARCH=mipsle go build -o usr/publish/ice.linux.mipsle src/main.go src/version.go src/binpack.go
|
||||||
|
|
||||||
%: src/%.go
|
%: src/%.go
|
||||||
@echo && date
|
@echo && date
|
||||||
go build -v -o usr/publish/$@ src/$@.go && chmod u+x usr/publish/$@
|
go build -v -o usr/publish/$@ src/$@.go && chmod u+x usr/publish/$@
|
||||||
|
@ -1 +1,2 @@
|
|||||||
~aaa
|
~cli
|
||||||
|
daemon export
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
~cli
|
||||||
|
daemon import
|
||||||
|
|
||||||
~aaa
|
~aaa
|
||||||
role white void web.code.git.spide
|
role white void web.code.git.spide
|
||||||
role white void web.code.git.trend
|
role white void web.code.git.trend
|
||||||
@ -27,6 +30,6 @@
|
|||||||
event action listen event dream.create cmd web.code.tmux.session
|
event action listen event dream.create cmd web.code.tmux.session
|
||||||
|
|
||||||
~ssh
|
~ssh
|
||||||
target web.code
|
|
||||||
target web.chat
|
target web.chat
|
||||||
|
target web.code
|
||||||
source local.shy
|
source local.shy
|
||||||
|
16
etc/miss.sh
16
etc/miss.sh
@ -7,13 +7,10 @@ fi
|
|||||||
require sys/cli/file.sh
|
require sys/cli/file.sh
|
||||||
ish_sys_path_load
|
ish_sys_path_load
|
||||||
|
|
||||||
[ -f ~/.bash_profile ] || echo "source ~/.bashrc" >> ~/.bash_profile
|
|
||||||
ish_sys_link_create ~/.bash_local $PWD/etc/conf/bash_local.sh
|
|
||||||
|
|
||||||
require miss.sh
|
require miss.sh
|
||||||
ish_miss_prepare_compile
|
ish_miss_prepare_compile
|
||||||
ish_miss_prepare_develop
|
ish_miss_prepare_develop
|
||||||
ish_miss_prepare_install
|
ish_miss_prepare_operate
|
||||||
|
|
||||||
# ish_miss_prepare word-dict
|
# ish_miss_prepare word-dict
|
||||||
# ish_miss_prepare wubi-dict
|
# ish_miss_prepare wubi-dict
|
||||||
@ -23,26 +20,27 @@ ish_miss_prepare nginx-story
|
|||||||
ish_miss_prepare golang-story
|
ish_miss_prepare golang-story
|
||||||
ish_miss_prepare redis-story
|
ish_miss_prepare redis-story
|
||||||
ish_miss_prepare mysql-story
|
ish_miss_prepare mysql-story
|
||||||
|
|
||||||
ish_miss_prepare release
|
ish_miss_prepare release
|
||||||
ish_miss_prepare_contexts
|
|
||||||
ish_miss_prepare_intshell
|
ish_miss_prepare_intshell
|
||||||
|
ish_miss_prepare_contexts
|
||||||
ish_miss_prepare_icebergs
|
ish_miss_prepare_icebergs
|
||||||
ish_miss_prepare_toolkits
|
ish_miss_prepare_toolkits
|
||||||
ish_miss_prepare_volcanos
|
ish_miss_prepare_volcanos
|
||||||
ish_miss_prepare_learning
|
ish_miss_prepare_learning
|
||||||
|
|
||||||
ish_miss_make; if [ -n "$*" ]; then ./bin/ice.bin forever serve "$@"; fi
|
ish_miss_make; if [ -n "$*" ]; then ish_miss_serve "$@"; fi
|
||||||
|
|
||||||
|
ish_sys_link_create ~/.bash_local $PWD/etc/conf/bash_local.sh
|
||||||
ish_sys_link_create ~/.vim_local.vim $PWD/etc/conf/vim_local.vim
|
ish_sys_link_create ~/.vim_local.vim $PWD/etc/conf/vim_local.vim
|
||||||
require dev/vim/vim.sh
|
require dev/vim/vim.sh
|
||||||
# ish_dev_vim_prepare
|
ish_dev_vim_prepare
|
||||||
|
|
||||||
if tmux -V; then
|
if tmux -V; then
|
||||||
require dev/tmux/tmux.sh
|
require dev/tmux/tmux.sh
|
||||||
ish_dev_tmux_prepare
|
ish_dev_tmux_prepare
|
||||||
ish_miss_prepare_session miss miss
|
ish_miss_prepare_session miss miss
|
||||||
else
|
else
|
||||||
ctx_log=/dev/stdout ish_miss_serve
|
ish_miss_serve_log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
11
src/package-lock.json
generated
11
src/package-lock.json
generated
@ -5,11 +5,17 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"gifshot": "^0.4.5",
|
||||||
"xterm": "^4.19.0",
|
"xterm": "^4.19.0",
|
||||||
"xterm-addon-fit": "^0.5.0",
|
"xterm-addon-fit": "^0.5.0",
|
||||||
"xterm-addon-web-links": "^0.6.0"
|
"xterm-addon-web-links": "^0.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/gifshot": {
|
||||||
|
"version": "0.4.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/gifshot/-/gifshot-0.4.5.tgz",
|
||||||
|
"integrity": "sha512-oaOTT7patjxFFv7ptR0R0NNhqy3ZAmcLUQCjM/sTsvsQaUAlB2fHirLajcNAKJ6ufoVhdP+ZkXYvmUycHP1FNg=="
|
||||||
|
},
|
||||||
"node_modules/xterm": {
|
"node_modules/xterm": {
|
||||||
"version": "4.19.0",
|
"version": "4.19.0",
|
||||||
"resolved": "https://registry.npmjs.org/xterm/-/xterm-4.19.0.tgz",
|
"resolved": "https://registry.npmjs.org/xterm/-/xterm-4.19.0.tgz",
|
||||||
@ -33,6 +39,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"gifshot": {
|
||||||
|
"version": "0.4.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/gifshot/-/gifshot-0.4.5.tgz",
|
||||||
|
"integrity": "sha512-oaOTT7patjxFFv7ptR0R0NNhqy3ZAmcLUQCjM/sTsvsQaUAlB2fHirLajcNAKJ6ufoVhdP+ZkXYvmUycHP1FNg=="
|
||||||
|
},
|
||||||
"xterm": {
|
"xterm": {
|
||||||
"version": "4.19.0",
|
"version": "4.19.0",
|
||||||
"resolved": "https://registry.npmjs.org/xterm/-/xterm-4.19.0.tgz",
|
"resolved": "https://registry.npmjs.org/xterm/-/xterm-4.19.0.tgz",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"gifshot": "^0.4.5",
|
||||||
"xterm": "^4.19.0",
|
"xterm": "^4.19.0",
|
||||||
"xterm-addon-fit": "^0.5.0",
|
"xterm-addon-fit": "^0.5.0",
|
||||||
"xterm-addon-web-links": "^0.6.0"
|
"xterm-addon-web-links": "^0.6.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user