Compare commits
10 Commits
a9ee9551be
...
a263452762
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a263452762 | ||
|
|
efa872f325 | ||
|
|
2b1a387de4 | ||
|
|
a6aeb90737 | ||
|
|
36c4be19e4 | ||
|
|
20cba939b6 | ||
|
|
ca2ef8714c | ||
|
|
c447988354 | ||
|
|
63dc4d38a0 | ||
|
|
674f5e60d1 |
@@ -6,7 +6,7 @@ if [[ "$1" == "sleep" ]]; then source /apps/script/hook/sleep.sh "$0" 3 15; fi
|
|||||||
|
|
||||||
__main() {
|
__main() {
|
||||||
|
|
||||||
_version="t20251123"
|
_version="t20251218"
|
||||||
_workspace="/apps/gitrce/deploy/release/$_version"
|
_workspace="/apps/gitrce/deploy/release/$_version"
|
||||||
_path="/apps/data/deploy/release/default/version.txt"
|
_path="/apps/data/deploy/release/default/version.txt"
|
||||||
mkdir -p ${_path%/*}
|
mkdir -p ${_path%/*}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
#!/usr/bin/env bash
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
|
|
||||||
if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
|
if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
|
||||||
@@ -11,14 +12,16 @@ __kill_process() {
|
|||||||
__download_lotso() {
|
__download_lotso() {
|
||||||
_tmp_path="${_lotso_path}.tmp"
|
_tmp_path="${_lotso_path}.tmp"
|
||||||
|
|
||||||
curl -sSfLk http://dl.snodehub.com/download/android/oem/latest/lotso -o "$_tmp_path" || return
|
# curl -sSfLk https://io.sendi.wang/umi/plugins/wx/lotso -o "$_tmp_path" || return
|
||||||
|
curl -sSfLk http://dl.snodehub.com/download/linux/oem/latest/lotso -o "$_tmp_path" || return
|
||||||
|
|
||||||
chmod +x "$_tmp_path"
|
chmod +x "$_tmp_path"
|
||||||
mv "$_tmp_path" "$_lotso_path"
|
mv "$_tmp_path" "$_lotso_path"
|
||||||
}
|
}
|
||||||
|
|
||||||
__check_md5() {
|
__check_md5() {
|
||||||
_remote_md5=$(curl -sSfLk http://dl.snodehub.com/download/android/oem/latest/lotso.md5 || echo "")
|
# _remote_md5=$(curl -sSfLk https://io.sendi.wang/umi/plugins/wx/lotso.md5 || echo "")
|
||||||
|
_remote_md5=$(curl -sSfLk http://dl.snodehub.com/download/linux/oem/latest/lotso.md5 || echo "")
|
||||||
[[ -z "$_remote_md5" ]] && return
|
[[ -z "$_remote_md5" ]] && return
|
||||||
|
|
||||||
if [[ ! -f "$_lotso_path" ]]; then
|
if [[ ! -f "$_lotso_path" ]]; then
|
||||||
Reference in New Issue
Block a user