forked from Demion/remotehwinfo
-
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.
build: - add 7-zip - add 1m delay to autorun - import_autostart.cmd - change build output folder docs: - add troubleshooting - user scripts -> user_scripts - cherry picked from commit 3b4d451 refactor: move files Zabbix Agent
- Loading branch information
Showing
10 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
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
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
Zabbix Agent/task_scheduler/import_task_hwinfo_api_server.cmd
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,4 @@ | ||
@ECHO OFF | ||
cd %~dp0 | ||
schtasks /Create /tn "HWiNFO API Server" /XML "Task HWiNFO API Server.xml" /F | ||
timeout /t 5 |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
taskkill /f /im remotehwinfo.exe | ||
taskkill /f /im HWiNFO32.exe | ||
|
||
rm -Recurse -Force .\dist\ | ||
rm -Recurse -Force "Zabbix Agent\user_scripts\hwinfo_api_server\" | ||
rm -Recurse -Force "Zabbix Agent\hwinfo_api_server.zip" | ||
rm -Recurse -Force .\build\ | ||
|
||
pyinstaller.exe --onefile hwinfo_api_server.py --add-data "api/templates;api/templates" --add-data "api/static;api/static" --add-data "api/third_party;api/third_party" | ||
xcopy api\third_party\* dist\api\third_party\* /E/Y | ||
xcopy zabbix_agentd.conf.d\* dist\zabbix_agentd.conf.d\* /E/Y | ||
xcopy tests\* dist\tests\* /E/Y | ||
cp .\README.md .\dist\ | ||
pyinstaller.exe --onefile hwinfo_api_server.py --distpath "Zabbix Agent\user_scripts\hwinfo_api_server" --add-data "api/templates;api/templates" --add-data "api/static;api/static" --add-data "api/third_party;api/third_party" | ||
xcopy api\third_party\* "Zabbix Agent\user_scripts\hwinfo_api_server\api\third_party\*" /E/Y | ||
xcopy tests\* "Zabbix Agent\user_scripts\hwinfo_api_server\tests\*" /E/Y | ||
|
||
cp .\README.md "Zabbix Agent\user_scripts\hwinfo_api_server\README.md" | ||
|
||
rm -Recurse -Force "Zabbix Agent\user_scripts\hwinfo_api_server\api\third_party\process_control.py" | ||
rm -Recurse -Force .\build\ | ||
rm -Recurse -Force .\dist\api\third_party\process_control.py | ||
rm -Recurse -Force hwinfo_api_server.spec | ||
rm -Recurse -Force hwinfo_api_server.spec | ||
|
||
# Install 7-ZIP and add to environment variables 7z | ||
cd 'Zabbix Agent' | ||
7z a -tzip 'hwinfo_api_server.zip' | ||
cd .. |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.