Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc743408

Browse files
committed
update software center
1 parent5d7f724 commitc743408

File tree

9 files changed

+27
-24
lines changed

9 files changed

+27
-24
lines changed

‎softcenter/app.json.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
}
9393
],
9494
"home_url":"https://raw.githubusercontent.com/koolshare/koolshare.github.io/master",
95-
"md5":"83ab72da396bb342c170184b13204dcb",
95+
"md5":"27c9595acf4d84fec6e70cab3de4d238",
9696
"tar_url":"softcenter/softcenter.tar.gz",
97-
"version":"1.3.9"
97+
"version":"1.4.0"
9898
}

‎softcenter/build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
VERSION=1.3.9
2+
VERSION=1.4.0
33

44
cat version
55
rm -f softcenter.tar.gz

‎softcenter/config.json.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version":"1.3.9",
3-
"md5":"83ab72da396bb342c170184b13204dcb"
2+
"version":"1.4.0",
3+
"md5":"27c9595acf4d84fec6e70cab3de4d238"
44
}

‎softcenter/push_message.json.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title":"<em>梅林改版固件&nbsp;-&nbsp;软件中心</em>",
33
"content1":"<b>通知:</b>koolshare merlin改版固件X7.9已经发布,请前往论坛<a href='http://koolshare.cn/forum-96-1.html' target='_blank'> <em>http://koolshare.cn</em> </a>更新吧~",
4-
"content2":"<b>koolproxy重要通告:<b><a href='http://koolshare.cn/thread-145260-1-1.html' target='_blank'> <em>http://koolshare.cn/thread-145260-1-1.html</em> </a>",
4+
"content2":"1.3.4更新日志:修复离线安装的一些问题; 修复在网络情况差的情况下可能无法访问软件中心服务器的问题。",
55
"content3":"<font color='#1E90FF'>交流反馈:&nbsp;&nbsp;</font>\
66
<a href='https://github.com/koolshare/koolshare.github.io' target='_blank'><em>1.软件中心GitHub项目</em></a>&nbsp;&nbsp;&nbsp;&nbsp;\
77
<a href='https://t.me/xbchat' target='_blank'><em>2.加入telegram群</em></a>&nbsp;&nbsp;&nbsp;&nbsp;\

‎softcenter/softcenter.tar.gz‎

63.9 KB
Binary file not shown.

‎softcenter/softcenter/scripts/ks_tar_intall.sh‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ eval `dbus export soft`
99
TARGET_DIR=/tmp
1010
clean(){
1111
[-n"$name" ]&& rm -rf /tmp/$name>/dev/null2>&1
12-
[-n"$MODULE_NAME" ] rm -rf /tmp/$MODULE_NAME>/dev/null2>&1
13-
rm -rf /tmp/$soft_name>/dev/null2>&1
12+
[-n"$MODULE_NAME" ]&&rm -rf /tmp/$MODULE_NAME>/dev/null2>&1
13+
[-n"$soft_name" ]&&rm -rf /tmp/$soft_name>/dev/null2>&1
1414
find /tmp -name"*.tar.gz"|xargs rm -rf>/dev/null2>&1
1515
}
1616

@@ -50,24 +50,20 @@ install_tar(){
5050
echo_date ====================== step 2 ===========================
5151
sleep 1
5252
start-stop-daemon -S -q -x$INSTALL_SCRIPT2>&1
53-
#sh /tmp/$name/install.sh 2>&1
5453
if ["$?"!="0" ];then
5554
echo_date 因为$MODULE_NAME插件安装失败!退出离线安装!
5655
clean
5756
dbus remove"softcenter_module_$MODULE_NAME$INSTALL_SUFFIX"
5857
echo_date ======================== end ============================
59-
#echo XU6J03M6
6058
exit
6159
fi
6260
echo_date ====================== step 3 ===========================
6361
dbusset"softcenter_module_$MODULE_NAME$NAME_SUFFIX=$MODULE_NAME"
6462
dbusset"softcenter_module_$MODULE_NAME$INSTALL_SUFFIX=1"
65-
#dbus set "softcenter_module_$name$VER_SUFFIX=$soft_install_version"
6663
if [-n"$soft_install_version" ];then
6764
dbusset"softcenter_module_$MODULE_NAME$VER_SUFFIX=$soft_install_version"
6865
echo_date"从插件文件名中获取到了版本号:$soft_install_version"
6966
else
70-
#已经在插件安装中设置了
7167
if [-z"`dbus get softcenter_module_$MODULE_NAME$VER_SUFFIX`" ];then
7268
dbusset"softcenter_module_$MODULE_NAME$VER_SUFFIX=0.1"
7369
echo_date"插件安装脚本里没有找到版本号,设置默认版本号为0.1"
@@ -89,7 +85,6 @@ install_tar(){
8985
clean
9086
dbus remove"softcenter_module_$MODULE_NAME$INSTALL_SUFFIX"
9187
echo_date ======================== end ============================
92-
#echo XU6J03M6
9388
exit
9489
fi
9590
sleep 1
@@ -116,7 +111,6 @@ install_tar(){
116111
dbus remove soft_name
117112
clean
118113
echo_date ======================== end ============================
119-
#echo XU6J03M6
120114
}
121115

122116
cat /dev/null> /tmp/syscmd.log

‎softcenter/softcenter/webs/Main_Soft_center.asp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function appUninstallModule(moduleInfo) {
468468
url: remoteURL,
469469
method:'GET',
470470
dataType:'jsonp',
471-
timeout:1*1000
471+
timeout:5000
472472
});
473473
}
474474

‎softcenter/softcenter/webs/Main_Soft_setting.asp‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,32 @@ function menu_hook(title, tab) {
4343
tabtitle[tabtitle.length-1]=newArray("","软件中心","离线安装");
4444
tablink[tablink.length-1]=newArray("","Main_Soft_center.asp","Main_Soft_setting.asp");
4545
}
46+
4647
functionupload_software() {
4748
var fullPath=document.getElementById('ss_file').value;
4849
if(!fullPath) {
4950
return;
5051
}
51-
document.getElementById('file_info').style.display="none";
52-
document.getElementById('loadingicon').style.display="block";
52+
5353
var startIndex= (fullPath.indexOf('\\')>=0?fullPath.lastIndexOf('\\'):fullPath.lastIndexOf('/'));
5454
var filename=fullPath.substring(startIndex);
5555
if (filename.indexOf('\\')===0||filename.indexOf('/')===0) {
5656
filename=filename.substring(1);
5757
}
58-
document.form.soft_name.value= filename;
59-
document.form.enctype="multipart/form-data";
60-
document.form.encoding="multipart/form-data";
61-
document.form.action="ssupload.cgi?a=/tmp/"+filename;
62-
document.form.submit();
58+
if (/.*[\u0391-\uffe5]+.*$/.test(filename)) {
59+
alert("错误:文件名中包含中文字符或符号!\n请更改文件名后重试!!");
60+
isok=0;
61+
returnfalse;
62+
}else{
63+
document.getElementById('file_info').style.display="none";
64+
document.getElementById('loadingicon').style.display="block";
65+
document.form.soft_name.value= filename;
66+
document.form.enctype="multipart/form-data";
67+
document.form.encoding="multipart/form-data";
68+
document.form.action="ssupload.cgi?a=/tmp/"+filename;
69+
console.log(filename);
70+
document.form.submit();
71+
}
6372
}
6473
6574
functionupload_ok(isok) {

‎softcenter/version‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.3.9
2-
83ab72da396bb342c170184b13204dcb
1+
1.4.0
2+
27c9595acf4d84fec6e70cab3de4d238

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp