???
This commit is contained in:
2
tools/all.ps1
Normal file
2
tools/all.ps1
Normal file
@@ -0,0 +1,2 @@
|
||||
./tools/clean.ps1
|
||||
./tools/build.ps1
|
||||
@@ -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.................................................................................................
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user