Skip to content

Commit

Permalink
fix: open hotUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
DazeCake committed Aug 26, 2023
1 parent 1d056e7 commit 1de66d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 0.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def upload(md5, type, force):
if type == "RELEASE":
upFile = pkgPath
elif type == "SKILL":
upFile = r"C:\Users\DazeCake\Development\ArkLights\res\skill.zip"
upFile = r"res\skill.zip"
md5 = hashlib.md5()
with open(upFile, "rb") as f:
md5.update(f.read())
Expand Down
4 changes: 2 additions & 2 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ default_auto_timeout_second = 300
-- 设成1000//30时,真机同时开着B服与官服时会出现点着点着脚本就停(从基建开始做邮件)
frame_milesecond = 1000 // 30
milesecond_after_click = frame_milesecond
release_date = "08.26 18:04"
release_date = "08.26 22:46"
ui_submit_color = "#ff0d47a1"
ui_cancel_color = "#ff1976d2"
ui_warn_color = "#ff33ccff"
Expand All @@ -69,7 +69,7 @@ matrixOcr = ocr
update_source = 'http://ark.aegirtech.com:8080'
new_script_path = getWorkPath() .. '/newscript.lr'
skill_path = getWorkPath() .. '/skill.zip'
skill_extract_path = getWorkPath() .. '/skill.zip'
skill_extract_path = getWorkPath() .. '/skill'

require('util')
require("point")
Expand Down
5 changes: 4 additions & 1 deletion util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,10 @@ end

check_hot_update = function()
toast("正在检查更新...")
if disable_hotupdate then return end
if disable_hotupdate then
log("热更新已禁用")
return
end

local file_md5 = loadConfig("lr_md5", "null")
local skill_md5 = loadConfig("skill_md5", "null")
Expand Down

0 comments on commit 1de66d1

Please sign in to comment.