bcmd 0.6.20__py3-none-any.whl → 0.6.22__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bcmd might be problematic. Click here for more details.
- bcmd/tasks/docs.py +7 -7
- {bcmd-0.6.20.dist-info → bcmd-0.6.22.dist-info}/METADATA +1 -1
- {bcmd-0.6.20.dist-info → bcmd-0.6.22.dist-info}/RECORD +6 -6
- {bcmd-0.6.20.dist-info → bcmd-0.6.22.dist-info}/WHEEL +0 -0
- {bcmd-0.6.20.dist-info → bcmd-0.6.22.dist-info}/entry_points.txt +0 -0
- {bcmd-0.6.20.dist-info → bcmd-0.6.22.dist-info}/top_level.txt +0 -0
bcmd/tasks/docs.py
CHANGED
|
@@ -47,7 +47,7 @@ async def build(
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
async def init(path: Path):
|
|
50
|
-
global projectPath, docsPath, vitepressDistPath, distPath, deployPath,
|
|
50
|
+
global projectPath, docsPath, vitepressDistPath, distPath, deployPath, zipFile
|
|
51
51
|
|
|
52
52
|
# 初始化目录路径
|
|
53
53
|
projectPath = path
|
|
@@ -62,10 +62,10 @@ async def init(path: Path):
|
|
|
62
62
|
bpath.remove(vitepressDistPath)
|
|
63
63
|
|
|
64
64
|
# 更新配置
|
|
65
|
-
|
|
66
|
-
if not
|
|
67
|
-
btask.abort('部署文件不存在',
|
|
68
|
-
conf.update(await bfile.readToml(
|
|
65
|
+
projectTomlFile = projectPath / 'project.toml'
|
|
66
|
+
if not projectTomlFile.exists():
|
|
67
|
+
btask.abort('部署文件不存在', projectTomlFile)
|
|
68
|
+
conf.update(await bfile.readToml(projectTomlFile))
|
|
69
69
|
|
|
70
70
|
# 整理特殊的字段
|
|
71
71
|
zipFile = distPath / f'{conf['domain']}_{now}.7z'
|
|
@@ -84,6 +84,7 @@ async def userInput():
|
|
|
84
84
|
self.addLabel('网站', conf['domain'])
|
|
85
85
|
self.addCheckBox('上传服务器', '', self.varIsUpload)
|
|
86
86
|
self.addEntry('请输入密码', self.varPassword, width=20, command=self.onBtn, password=True, focus=True)
|
|
87
|
+
self.addBtn('确定', self.onBtn)
|
|
87
88
|
|
|
88
89
|
def onBtn(self):
|
|
89
90
|
password = self.varPassword.get()
|
|
@@ -115,8 +116,7 @@ async def vitepressBuild(outputPath: Path):
|
|
|
115
116
|
|
|
116
117
|
|
|
117
118
|
async def makeDeploy(outputPath: Path):
|
|
118
|
-
bpath.copy(
|
|
119
|
-
bpath.remove(outputPath / 'info.toml')
|
|
119
|
+
bpath.copy(deployPath, outputPath)
|
|
120
120
|
|
|
121
121
|
# 删除配置里面加密和删除非字符串的配置,剩下的内容用于替换文件名和文件内容
|
|
122
122
|
dataDict: dict[str, Any] = pickle.loads(pickle.dumps(conf))
|
|
@@ -7,7 +7,7 @@ bcmd/tasks/__init__.py,sha256=shEJe1E9NlJhVWF0GpRLNDqdCVyJ91WYVKTGc1hrgkw,334
|
|
|
7
7
|
bcmd/tasks/bin.py,sha256=DufZGRX7b2zclSaZM-zUPGwOiycN9RsV8KxF8tfSyqs,3240
|
|
8
8
|
bcmd/tasks/code.py,sha256=IUs_ClZuSsBk2gavlitC8mkRrQQX9rvNDgR8cFxduBA,3992
|
|
9
9
|
bcmd/tasks/crypto.py,sha256=LKvgsMPLvsi1wlt66TinYiN-oV2IPAfaN9y7hWaVpHs,2951
|
|
10
|
-
bcmd/tasks/docs.py,sha256=
|
|
10
|
+
bcmd/tasks/docs.py,sha256=GELGIzTXY32_p_zaructhmozA5F0js6w-lKpYTaz8Ck,5913
|
|
11
11
|
bcmd/tasks/download.py,sha256=XdZYKi8zQTNYWEgUxeTNDqPgP7IGYJkMmlDDC9u93Vk,2315
|
|
12
12
|
bcmd/tasks/image.py,sha256=_ck-WVfUlyQ2fZTpVPcpcurWSud7AkANKUuFjMW7MwA,14283
|
|
13
13
|
bcmd/tasks/json.py,sha256=WWOyvcZPYaqQgp-Tkm-uIJschNMBKPKtZN3yXz_SC5s,635
|
|
@@ -26,8 +26,8 @@ test/conftest.py,sha256=grlPunlsvrkt_8QPckmF4POiKUPVxIxm2TPAh_ZB-zs,405
|
|
|
26
26
|
test/test_pdf.py,sha256=7yYlfydyhy2dmVYdTA5Vir2AI8TUdzEi55fL-AqJmio,1533
|
|
27
27
|
test/test_proxy.py,sha256=UMF2hFFGUEbJR1jT2mO_wdo-7Rfp0NDqIdTRnOmwtjY,164
|
|
28
28
|
test/test_wasabi.py,sha256=qqXG1Kb9hKH6t624R173j6LagkgmejN0CFYt7kL0nNs,1066
|
|
29
|
-
bcmd-0.6.
|
|
30
|
-
bcmd-0.6.
|
|
31
|
-
bcmd-0.6.
|
|
32
|
-
bcmd-0.6.
|
|
33
|
-
bcmd-0.6.
|
|
29
|
+
bcmd-0.6.22.dist-info/METADATA,sha256=ugMwihGyP9oHQoQldwqQIc1FmXp5lN9Cl8w21N0LaTI,845
|
|
30
|
+
bcmd-0.6.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
bcmd-0.6.22.dist-info/entry_points.txt,sha256=mriCeYh3wksKcqq3-LtzyFkSCIdN1uZc1IJwom-SW1s,34
|
|
32
|
+
bcmd-0.6.22.dist-info/top_level.txt,sha256=fYY6tRrJ_G7tn24RXAG0M5ZKbcuaQznodfX1toFPSKs,10
|
|
33
|
+
bcmd-0.6.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|