This commit is contained in:
Samuel
2025-03-01 20:33:58 +00:00
parent 884849b2c2
commit 5b8c603fec
5 changed files with 131 additions and 58 deletions

2
tools/all.ps1 Normal file
View File

@@ -0,0 +1,2 @@
./tools/clean.ps1
./tools/build.ps1

View File

@@ -4,10 +4,10 @@
# pyarmor gen -O dist -i src --recursive
# cython
# pyinstaller --onefile -I "NONE" -add-data "data;data" ./src/main.py
# pyinstaller --clean --onefile -i "NONE" --add-data "data;data" ./src/main.py
(pyinstaller --clean --distpath ./dist --workpath ./build main.spec) -and (pyinstaller .\main.spec)
# upx
# upxs
# RUN.................................................................................................

View File

@@ -1,10 +1,10 @@
del -r .\data\local_keys
del -r .\data\remote_keys
# del -r .\data\remote_keys
mkdir -p .\data\local_keys
mkdir -p .\data\remote_keys
for ($i=0; $i -lt 4; $i++){
# mkdir -p .\data\remote_keys
for ($i = 0; $i -lt 4; $i++) {
ssh-keygen -f ./data/local_keys/id_ecdsa_$i -t ecdsa -b 256 -q -N '""' -C "local_key_$i"
ssh-keygen -f ./data/remote_keys/id_ecdsa_$i -t ecdsa -b 256 -q -N '""' -C "remote_key_$i"
cat ./data/remote_keys/id_ecdsa_$i.pub >> ./data/remote_keys/administrator_authorized_keys
# ssh-keygen -f ./data/remote_keys/id_ecdsa_$i -t ecdsa -b 256 -q -N '""' -C "remote_key_$i"
# cat ./data/remote_keys/id_ecdsa_$i.pub >> ./data/remote_keys/administrator_authorized_keys
# del ./data/remote_keys/*.pub
}