Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openshot
Openshot Qt
提交
7e0d5c57
O
Openshot Qt
项目概览
openshot
/
Openshot Qt
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Openshot Qt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7e0d5c57
编写于
2月 26, 2021
作者:
J
Jonathan Thomas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixing some codacy issues
上级
f79dc99e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
9 deletion
+7
-9
installer/build_server.py
installer/build_server.py
+3
-4
installer/deploy.py
installer/deploy.py
+4
-5
未找到文件。
installer/build_server.py
浏览文件 @
7e0d5c57
...
...
@@ -100,8 +100,7 @@ def truncate(message, maxlen=256):
"""Truncate the message with ellipses"""
if
len
(
message
)
<
maxlen
:
return
message
else
:
return
"%s..."
%
message
[:
maxlen
]
return
"%s..."
%
message
[:
maxlen
]
def
zulip_upload_log
(
zulip_token
,
log
,
title
,
comment
=
None
):
...
...
@@ -189,8 +188,8 @@ def upload(file_path, github_release):
if
__name__
==
"__main__"
:
"""
Only run this code when directly executing this script. Parts of this file
are also used in the deploy.py script. """
#
Only run this code when directly executing this script. Parts of this file
# are also used in the deploy.py script.
try
:
# Validate command-line arguments
if
len
(
sys
.
argv
)
>=
2
:
...
...
installer/deploy.py
浏览文件 @
7e0d5c57
...
...
@@ -51,7 +51,7 @@ urllib3.disable_warnings()
if
__name__
==
"__main__"
:
"""Only run this code when directly executing this script. """
# Only run this code when directly executing this script.
zulip_token
=
None
github_user
=
None
...
...
@@ -214,7 +214,6 @@ if __name__ == "__main__":
# Download the installer we just uploaded (so we can check the shasum)
r
=
get
(
download_url
)
assert
(
r
.
ok
is
True
)
check_artifact_path
=
artifact_path
+
".tmp"
with
open
(
check_artifact_path
,
"wb"
)
as
f
:
f
.
write
(
r
.
content
)
...
...
@@ -260,9 +259,9 @@ if __name__ == "__main__":
if
not
torrent_output
.
endswith
(
"Writing metainfo file... done."
):
# Torrent failed
raise
Exception
(
"Failed to create .torrent for %s"
%
download_url
)
else
:
# Torrent succeeded! Upload the torrent to github
url
=
upload
(
torrent_path
,
github_release
)
# Torrent succeeded! Upload the torrent to github
url
=
upload
(
torrent_path
,
github_release
)
# Submit blog post (if it doesn't already exist) (in draft mode)
auth
=
HTTPBasicAuth
(
os
.
getenv
(
'OPENSHOT_ORG_USER'
),
os
.
getenv
(
'OPENSHOT_ORG_PASS'
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录