Skip to content

Commit

Permalink
1.1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
YrracOwl committed Mar 18, 2024
1 parent f8cca04 commit 2e5d9d7
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 9 deletions.
2 changes: 1 addition & 1 deletion default.aproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<project ver="10" name="ChiikawaBest" libEmbed="true" icon="res\chiikawaIcon.ico" ui="win" output="ChiikawaBest.exe" CompanyName="CarryWho" FileDescription="ChiikawaBest" LegalCopyright="Copyright (C) CarryWho 2023" ProductName="ChiikawaBest" InternalName="ChiikawaBest" FileVersion="1.1.1.10" ProductVersion="1.1.1.10" publishDir="/dist/" dstrip="false" local="false" ignored="false">
<project ver="10" name="ChiikawaBest" libEmbed="true" icon="res\chiikawaIcon.ico" ui="win" output="ChiikawaBest.exe" CompanyName="CarryWho" FileDescription="ChiikawaBest" LegalCopyright="Copyright (C) CarryWho 2023" ProductName="ChiikawaBest" InternalName="ChiikawaBest" FileVersion="1.1.1.11" ProductVersion="1.1.1.11" publishDir="/dist/" dstrip="false" local="false" ignored="false">
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
<folder name="资源文件" path="res" embed="true" local="false" ignored="false">
<file name="chiikawa.png" path="res\chiikawa.png" comment="res\chiikawa.png"/>
Expand Down
47 changes: 43 additions & 4 deletions dlg/TestInet.aardio
Original file line number Diff line number Diff line change
@@ -1,24 +1,63 @@
inet_launch_params_http = "HTTP=HTTP://127.0.0.1:20221";
inet_launch_params_socks = "SOCKS5=SOCKS5://127.0.0.1:20220";
inet_launch_params_http = "HTTP=HTTP://127.0.0.1:20200";
inet_launch_params_socks = "SOCKS5=SOCKS5://127.0.0.1:20199";
inet_launch_params_none = "";

import web.rest.github;
import web.rest.client;
import console;

console.log(">>>Test Github")
var client = web.rest.client(,inet_launch_params_http);

/*
console.dump(web.rest.github.latestRelease("YrracOwl/ChiikawaBest"))

console.log(">>>Test Github Path Info")
var urlPath = web.rest.github.latestRelease("YrracOwl/ChiikawaBest","ChiikawaBest.exe")
console.dump(urlPath)
*/

/*
console.log(">>>Client Head")
var client = web.rest.client(,inet_launch_params_http);
latestPath = "https://github.com/YrracOwl/ChiikawaBest/releases/latest/";

client.get(latestPath);
console.dump(client.lastStatusCode);
console.more(1)

var flag = client.head(latestPath);
if(flag){
console.dump(client.lastResponseHeaders());
console.more(1)
client.get(latestPath);
console.dump(client.lastStatusCode);
console.more(1)
}
*/

/*
var RestGithub = web.rest.client("Mozilla/5.0","HTTP=HTTP://127.0.0.1:20200","localhost,127.0.0.*");
var GithubResponse = RestGithub.get("https://www.google.com");
console.dump(GithubResponse);
*/

latestPath = "https://github.com/YrracOwl/ChiikawaBest/releases/latest";

import inet.http;
var http = inet.http(,inet_launch_params_http);
http.disableRedirects(true) ;
http.beginRequest(latestPath);
http.send();
console.log(http.readHeader("status"))
http.endRequest();

/*
import inet.whttp;
var http = inet.whttp()
http.disableRedirects()
var str,code,message = http.get(latestPath)

io.open()
io.print( str,code,message )
*/

console.pause();
15 changes: 12 additions & 3 deletions main.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ import process;
//创建原子窗体
var atomId,hwnd = win.ui.atom.find("3C6F3EEC-7B25-44F1-B612-FBAA2319827D.ChiikawaBest")
if( atomId ){
win.show(hwnd, true);
win.setForeground(hwnd);
win.quitMessage();
if(!hwnd){
process.atom.delete(atomId);
process.execute(io._exepath,'operation=slowStart');
}
else {
win.show(hwnd, true);
win.setForeground(hwnd);
}

win.quitMessage();
return;
}
else {
Expand Down Expand Up @@ -138,6 +145,7 @@ if(not io.exist(siteBaseDir)){
//wsock.tcp.asynHttpServer导入
import wsock.tcp.asynHttpServer;
siteServer = wsock.tcp.asynHttpServer();

//这里可以指定 IP 和端口,不指定则自动分配空闲端口
//成功返回true,失败返回null
if(siteServer.start("0.0.0.0", 40315) == null){
Expand Down Expand Up @@ -434,6 +442,7 @@ mainForm.onClose = function(hwnd,message,wParam,lParam){

mainForm.onDestroy = function(){
siteServer.stop();
siteServer = null;
}

var minimize_1st_show = true;
Expand Down
1 change: 1 addition & 0 deletions release/1.1.1.10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1.10
1 change: 0 additions & 1 deletion release/1.1.1.9

This file was deleted.

Binary file modified release/ChiikawaBest.exe
Binary file not shown.

0 comments on commit 2e5d9d7

Please sign in to comment.