feat: add current-project PDF export
This commit is contained in:
1 parent
771d8efb87
commit
c8caaf8daf
22 files changed
+1959
-1
No files matched your search
@@ -10,6 +10,8 @@ hiddenimports = (
|
||||
collect_submodules("dx_productivity")
|
||||
+ collect_submodules("qtawesome")
|
||||
+ collect_submodules("cryptography")
|
||||
+ collect_submodules("pypdf")
|
||||
+ ["pypdf", "win32job", "win32con", "win32process", "pywintypes"]
|
||||
)
|
||||
datas = collect_data_files("qtawesome")
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $pythonExe -PathType Le
|
||||
throw "Could not resolve the Python 3.12 executable."
|
||||
}
|
||||
|
||||
& $pythonExe -c "import PyInstaller, PySide6, qtawesome"
|
||||
& $pythonExe -c "import PyInstaller, PySide6, qtawesome, pypdf, win32job"
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Build dependencies are missing. Install the project build extras before running this script."
|
||||
}
|
||||
@@ -82,6 +82,7 @@ Copy-Item -LiteralPath $distRoot -Destination $releaseRoot -Recurse
|
||||
Copy-Item -LiteralPath (Join-Path $repoRoot "integration\dxdesigner795\MenuAdd.vbs") -Destination (Join-Path $releaseRoot "MenuAdd.vbs")
|
||||
Copy-Item -LiteralPath (Join-Path $repoRoot "integration\dxdesigner795\DesignBridge.vbs") -Destination (Join-Path $releaseRoot "DesignBridge.vbs")
|
||||
Copy-Item -LiteralPath (Join-Path $repoRoot "integration\dxdesigner795\CompatibilityProbe.vbs") -Destination (Join-Path $releaseRoot "CompatibilityProbe.vbs")
|
||||
Copy-Item -LiteralPath (Join-Path $repoRoot "integration\dxdesigner795\PdfSaveListener.vbs") -Destination (Join-Path $releaseRoot "PdfSaveListener.vbs")
|
||||
|
||||
$runtimeVbs = Join-Path $releaseRoot "_runtime\vbs"
|
||||
New-Item -ItemType Directory -Path $runtimeVbs -Force | Out-Null
|
||||
@@ -103,6 +104,8 @@ New-Item -ItemType Directory -Path $docsRoot -Force | Out-Null
|
||||
$guideSource = Join-Path $repoRoot "docs\user\DxDesigner_7.9.5_自动位号工具使用说明_v0.5.docx"
|
||||
$guideDestination = Join-Path $docsRoot "DxDesigner_7.9.5_自动位号工具使用说明.docx"
|
||||
Copy-Item -LiteralPath $guideSource -Destination $guideDestination
|
||||
$pdfGuideDestination = Join-Path $docsRoot "PDF导出.md"
|
||||
Copy-Item -LiteralPath (Join-Path $repoRoot "docs\user\PDF_export.md") -Destination $pdfGuideDestination
|
||||
|
||||
$env:PYTHONPATH = Join-Path $repoRoot "src"
|
||||
$productVersion = (& $pythonExe -c "import dx_productivity; print(dx_productivity.__version__)").Trim()
|
||||
@@ -135,6 +138,7 @@ $expected = @(
|
||||
(Join-Path $releaseRoot "MenuAdd.vbs"),
|
||||
(Join-Path $releaseRoot "DesignBridge.vbs"),
|
||||
(Join-Path $releaseRoot "CompatibilityProbe.vbs"),
|
||||
(Join-Path $releaseRoot "PdfSaveListener.vbs"),
|
||||
(Join-Path $releaseRoot "_runtime\vbs\BridgeCommon.vbs"),
|
||||
(Join-Path $releaseRoot "_runtime\vbs\Snapshot.vbs"),
|
||||
(Join-Path $releaseRoot "_runtime\vbs\Transaction.vbs"),
|
||||
@@ -143,6 +147,7 @@ $expected = @(
|
||||
(Join-Path $releaseRoot "templates\BOM模板.xls"),
|
||||
(Join-Path $releaseRoot "expedition\ExpeditionBridge.vbs"),
|
||||
(Join-Path $docsRoot "DxDesigner_7.9.5_自动位号工具使用说明.docx"),
|
||||
$pdfGuideDestination,
|
||||
$versionFile,
|
||||
$updateManifestFile
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user