Skip to content

Commit 4ad7a13

Browse files
committed
try to avoid build installer issue:
WixToolset.UI.wixext : warning WIX6101: Could not find expected package root folder wixext6. Ensure WixToolset.UI.wixext/7.0.0-rc.1 is compatible with WiX v6. Compiling PythonScript installer wix.exe : error WIX0144: The extension 'WixToolset.UI.wixext' could not be found. Checked paths: WixToolset.UI.wixext Error!
1 parent febd40f commit 4ad7a13

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.github/workflows/CI_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ jobs:
4848
$env:PYTHONBUILDDIR_X64='${{ github.workspace }}\packages\python.3.14.3\tools'
4949
$env:PYTHONBUILDDIR='${{ github.workspace }}\packages\pythonx86.3.14.3\tools'
5050
Rename-Item -Path ".\buildPaths.bat.orig" -NewName "buildPaths.bat"
51-
dotnet tool install --global wix
51+
dotnet tool install --global wix --version 6.0.2
5252
.\buildAll.bat ${{ matrix.build_platform }}

appveyor.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ environment:
99
platform:
1010
- x64
1111
- Win32
12+
- ARM64
1213

1314
configuration:
1415
- Release
1516
- Debug
16-
# see https://www.boost.org/doc/libs/1_87_0/libs/python/doc/html/building/python_debugging_builds.html
17+
# see https://www.boost.org/doc/libs/1_90_0/libs/python/doc/html/building/python_debugging_builds.html
1718
# not available by boost nuget package
1819
#- PythonDebug
1920

@@ -25,26 +26,29 @@ install:
2526
- if "%platform%"=="Win32" set archi=x86
2627
- if "%platform%"=="Win32" set platform_input=Win32
2728

29+
- if "%platform%"=="ARM64" set archi=arm64
30+
- if "%platform%"=="ARM64" set platform_input=ARM64
31+
2832
- if "%PlatformToolset%"=="v143" call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
2933

3034
- nuget restore "%APPVEYOR_BUILD_FOLDER%"\PythonScript\project\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\packages
31-
- nuget restore "%APPVEYOR_BUILD_FOLDER%"\PythonScript.Tests\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\packages
3235

3336
build_script:
3437
- cd "%APPVEYOR_BUILD_FOLDER%"
3538
- msbuild PythonScript.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
3639

3740
after_build:
3841
- if "%configuration%"=="Release" cd "%APPVEYOR_BUILD_FOLDER%"\docs
39-
- if "%configuration%"=="Release" set PATH=C:\Python312-x64;C:\Python312-x64\Scripts;%PATH%
42+
- if "%configuration%"=="Release" set PATH=C:\Python314-x64;C:\Python314-x64\Scripts;%PATH%
4043
- if "%configuration%"=="Release" python -m pip install --upgrade pip
4144
- if "%configuration%"=="Release" pip install -U sphinx
4245
- if "%configuration%"=="Release" make.bat html
4346

4447
- cd "%APPVEYOR_BUILD_FOLDER%"\installer
4548
- dotnet tool install --global wix
46-
- if "%platform_input%"=="x64" SET PYTHONBUILDDIR_X64="%APPVEYOR_BUILD_FOLDER%"\packages\python.3.12.10\tools
47-
- if "%platform_input%"=="Win32" SET PYTHONBUILDDIR="%APPVEYOR_BUILD_FOLDER%"\packages\pythonx86.3.12.10\tools
49+
- if "%platform_input%"=="ARM64" SET PYTHONBUILDDIR_X64="%APPVEYOR_BUILD_FOLDER%"\packages\python.3.14.3\tools
50+
- if "%platform_input%"=="x64" SET PYTHONBUILDDIR_X64="%APPVEYOR_BUILD_FOLDER%"\packages\python.3.14.3\tools
51+
- if "%platform_input%"=="Win32" SET PYTHONBUILDDIR="%APPVEYOR_BUILD_FOLDER%"\packages\pythonx86.3.14.3\tools
4852
- copy "%APPVEYOR_BUILD_FOLDER%"\installer\buildPaths.bat.orig "%APPVEYOR_BUILD_FOLDER%"\installer\buildPaths.bat
4953
- if "%configuration%"=="Release" buildAll.bat %platform_input%
5054
- cd "%APPVEYOR_BUILD_FOLDER%"
@@ -59,6 +63,13 @@ after_build:
5963
}
6064
6165
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v143") {
66+
if($env:PLATFORM_INPUT -eq "ARM64"){
67+
$ZipFileName = "PythonScript_$($env:APPVEYOR_REPO_TAG_NAME)_arm64.zip"
68+
7z a $ZipFileName $env:APPVEYOR_BUILD_FOLDER\$env:PLATFORM_INPUT\$env:CONFIGURATION\*.dll
69+
Push-AppveyorArtifact $ZipFileName -FileName $ZipFileName
70+
Get-ChildItem .\installer\build\**\*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName releases}
71+
Get-ChildItem .\installer\build\**\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName releases}
72+
}
6273
if($env:PLATFORM_INPUT -eq "x64"){
6374
$ZipFileName = "PythonScript_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
6475
7z a $ZipFileName $env:APPVEYOR_BUILD_FOLDER\$env:PLATFORM_INPUT\$env:CONFIGURATION\*.dll

installer/buildInstaller.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ SET /p PYTHONSCRIPTVERSION= < %INST_TEMP_DIR%\version.txt
5151

5252
cd ..\packages
5353
echo add UI extension globally
54-
wix extension add -g WixToolset.UI.wixext
54+
wix extension add -g WixToolset.UI.wixext/6.0.2
5555
wix extension list -g
5656
cd ..\installer
5757

0 commit comments

Comments
 (0)