-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复了beta版本的解析错误问题,修复了计划任务设置问题,修复了Query程序查询顺序混乱的缺点。优化了解析逻辑与查询逻辑,优化了触发器选择,添加了计划清除功能,添加了新的输入支持格式,添加了自动格式化去重功能,重写了支持文档,新增了软件封装脚本
- Loading branch information
Showing
7 changed files
with
260 additions
and
156 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
:: 软件封装调试专用 | ||
:: | ||
:: Author: BY7030SWL and BG7ZCM | ||
:: Date: 2024/02/09 | ||
:: Version: 0.0.0 formal_edition | ||
:: LICENSE: GNU General Public License v3.0 | ||
|
||
CHCP 65001 | ||
|
||
pyinstaller --onefile --clean -F -w -i "UI/CelesTrak.ico" "Custom_Query.py" | ||
pyinstaller --onefile --clean --uac-admin -F -w -i "UI/Custom 3LE.ico" "Custom_GUI.py" | ||
|
||
move .\dist\Custom_GUI.exe .\ | ||
move .\dist\Custom_Query.exe .\ | ||
|
||
del Custom_GUI.spec | ||
echo 已删除文件: Custom_GUI.spec | ||
|
||
del Custom_Query.spec | ||
echo 已删除文件: Custom_Query.spec | ||
|
||
rmdir /s /q dist | ||
echo 已删除目录: dist | ||
|
||
rmdir /s /q build | ||
echo 已删除目录: build | ||
|
||
( | ||
echo ;0.0.0 official version configuration file. | ||
echo [Path] | ||
echo. | ||
echo [FileName] | ||
echo filename = Custom.txt | ||
echo. | ||
echo [Update] | ||
echo. | ||
echo [NORAD_List] | ||
) > date.ini | ||
|
||
:: 打包完成后启动 Custom_GUI.exe | ||
start Custom_GUI.exe |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Task Scheduler module for Custom 3LE | ||
# This module is mainly used to create scheduled tasks (temporary solutions), | ||
# which will be integrated into the GUI program later. | ||
# | ||
# Author: BY7030SWL and BG7ZCM | ||
# Date: 2024/02/08 | ||
# Version: 0.0.0 beta | ||
# LICENSE: GNU General Public License v3.0 | ||
|
||
# 设置输出编码为 UTF-8 | ||
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 | ||
|
||
# 任务名称 | ||
$TaskName = "Custom_3LE_Query" | ||
|
||
# 可执行文件路径 | ||
$ExePath = "$PSScriptRoot\Custom_Query.exe" | ||
Write-Host "$ExePath" | ||
|
||
# 检查任务是否已存在 | ||
$taskExists = Get-ScheduledTask -TaskName $TaskName -ErrorAction SilentlyContinue | ||
if ($taskExists) { | ||
# 如果任务已存在,则注销它 | ||
Unregister-ScheduledTask -TaskName $TaskName -Confirm:$false | ||
Start-Sleep -Seconds 2 | ||
} | ||
|
||
# 检查是否提供了参数 | ||
if (-not $args) { | ||
Write-Host "Please provide parameters!" | ||
exit 1 | ||
} else { | ||
# 如果参数是 "Remove",则只执行移除任务计划的操作 | ||
if ($args[0] -eq "Remove") { | ||
Write-Host "Remove scheduled tasks..." | ||
exit 0 | ||
} | ||
|
||
# 根据提供的参数设置触发器 | ||
switch ($args[0]) { | ||
"OnLogon" { | ||
$trigger = New-ScheduledTaskTrigger -AtLogon | ||
$location = "$PSScriptRoot" | ||
} | ||
"Daily" { | ||
$trigger = New-ScheduledTaskTrigger -Daily -At 11am | ||
$location = "$PSScriptRoot" | ||
} | ||
"Weekly" { | ||
$trigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Monday -At 11am | ||
$location = "$PSScriptRoot" | ||
} | ||
"Monthly" { | ||
$trigger = New-ScheduledTaskTrigger -Monthly -At 11am -Months 1 | ||
$location = "$PSScriptRoot" | ||
} | ||
default { | ||
Write-Host "Invalid parameter!" | ||
exit 1 | ||
} | ||
} | ||
|
||
# 创建 Action 对象 | ||
$action = New-ScheduledTaskAction -Execute "$ExePath" -WorkingDirectory $location | ||
|
||
# 注册计划任务 | ||
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName $TaskName | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
; Configuration file, Version: 0.0.0 formal_edition | ||
[Path] | ||
|
||
[FileName] | ||
|