Compare commits
6 Commits
494afed4ae
...
1665459376
Author | SHA1 | Date | |
---|---|---|---|
a83e4016ab | |||
d069196887 | |||
ffefad5db5 | |||
f0121274a6 | |||
302dcd5529 | |||
0a55b3ae8c |
@ -1,4 +1,4 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
from multiprocessing import Process, Manager, Pool, TimeoutError, freeze_support, active_children
|
||||
@ -47,8 +47,8 @@ def netstat_done(res):
|
||||
|
||||
def process_done(res):
|
||||
fprint("uploading to sftp...")
|
||||
ssh.sftp_send_data(res, config, datafile)
|
||||
#procdata_res = pool.apply_async(ssh.sftp_send_data, (res, config, datafile))
|
||||
#ssh.sftp_send_data(res, config, datafile)
|
||||
procdata_res = pool.apply_async(ssh.sftp_send_data, (res, config, datafile))
|
||||
|
||||
|
||||
|
||||
|
11
release.sh
11
release.sh
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -x
|
||||
#set -x
|
||||
|
||||
TOKEN=$(< token.txt)
|
||||
EDITOR=nano git commit -a
|
||||
@ -8,7 +8,9 @@ git push
|
||||
COMMIT=$(git log | head -n 1 | cut -d' ' -f2)
|
||||
echo $COMMIT
|
||||
export PATH=$PATH:"C:\Program Files\7-Zip"
|
||||
DATE=$(date +%s)
|
||||
TAG=$(date +%s)
|
||||
"C:/Program Files/Python310/python.exe" setup.py build
|
||||
sleep 2
|
||||
7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/*
|
||||
|
||||
DATA='{
|
||||
@ -16,7 +18,7 @@ DATA='{
|
||||
"draft": false,
|
||||
"name": "Development release",
|
||||
"prerelease": true,
|
||||
"tag_name": "'$DATE'",
|
||||
"tag_name": "'$TAG'",
|
||||
"target_commitish": "'$COMMIT'"
|
||||
}'
|
||||
OUT=$(curl -X 'POST' \
|
||||
@ -33,6 +35,7 @@ OUT=$(curl -X 'POST' \
|
||||
-H 'Content-Type: multipart/form-data' \
|
||||
-F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed')
|
||||
|
||||
URL=$(echo $OUT | cut -d',' -f 6 | cut -d\" -f4)
|
||||
URL=$(echo $OUT | cut -d',' -f 7 | cut -d\" -f4)
|
||||
echo $URL
|
||||
curl -d "$URL" https://notify.deck.sh/ipro-release
|
||||
rm release-$COMMIT.zip
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ import sys
|
||||
from cx_Freeze import setup, Executable
|
||||
|
||||
debug = True
|
||||
debug = not debug
|
||||
#debug = not debug
|
||||
# Dependencies are automatically detected, but it might need fine tuning.
|
||||
# "packages": ["os"] is used as example only
|
||||
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "IPPigeon.lnk", "config.yml", "keyfile-admin.pem"], "optimize": 2}
|
||||
|
Reference in New Issue
Block a user