Skip to content

Commit

Permalink
Update ci_notify.py
Browse files Browse the repository at this point in the history
fix:1.After the generated executable file is sent to the mailbox, it is prevented from being filtered out
  • Loading branch information
lihaiyong827 committed Sep 16, 2021
1 parent 401358d commit 242022b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ci_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
MESSAGE.attach(
MIMEText('<p>Built executable on {0}</p><p>Version: {1}</p>'.format(SYS, VERSION), 'html', 'utf-8'))

FILE_NAME = 'acenav.bak' if SYS == "Windows" else 'acenav'
FILE_NAME = 'acenav.exe' if SYS == "Windows" else 'acenav'

ATTACHMENT = MIMEText(open(os.path.join(os.getcwd(), 'dist', FILE_NAME),
'rb').read(), 'base64', 'utf-8')
ATTACHMENT["Content-Type"] = 'application/octet-stream'
ATTACHMENT["Content-Disposition"] = 'attachment; filename="{0}"'.format(
FILE_NAME)
FILE_NAME+'.bak')
MESSAGE.attach(ATTACHMENT)

try:
Expand Down

0 comments on commit 242022b

Please sign in to comment.