mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-07-30 07:44:13 +02:00
New Windows Qt5/Qt6 CI test, enable -platform windows:fontengine=freetype
This commit is contained in:
@@ -244,6 +244,14 @@ jobs:
|
|||||||
Write-Host " ProductCode : $productCode"
|
Write-Host " ProductCode : $productCode"
|
||||||
Write-Host " Output : dist\$outputName"
|
Write-Host " Output : dist\$outputName"
|
||||||
|
|
||||||
|
if ("${{ matrix.flavor }}" -eq "qt5") {
|
||||||
|
$qtArgs = "-platform windows:fontengine=freetype"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$qtArgs = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
wix build $wxs `
|
wix build $wxs `
|
||||||
-arch x64 `
|
-arch x64 `
|
||||||
-d "Version=$version" `
|
-d "Version=$version" `
|
||||||
@@ -251,6 +259,7 @@ jobs:
|
|||||||
-d "ProductCode=$productCode" `
|
-d "ProductCode=$productCode" `
|
||||||
-d "FilesDir=$filesDir" `
|
-d "FilesDir=$filesDir" `
|
||||||
-d "LicenseRtf=$licRtf" `
|
-d "LicenseRtf=$licRtf" `
|
||||||
|
-d QtPlatformArgs="$qtArgs" `
|
||||||
-ext WixToolset.UI.wixext `
|
-ext WixToolset.UI.wixext `
|
||||||
-ext WixToolset.Util.wixext `
|
-ext WixToolset.Util.wixext `
|
||||||
-o "dist\$outputName"
|
-o "dist\$outputName"
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ rem "C:/Users/<USER>/AppData/Local/QElectroTech/QElectroTech"
|
|||||||
rem Sans l'option --data-dir, les données utilisateur (elements, titleblocks,
|
rem Sans l'option --data-dir, les données utilisateur (elements, titleblocks,
|
||||||
rem log, ...) de QElectroTech sont stockées dans
|
rem log, ...) de QElectroTech sont stockées dans
|
||||||
rem "C:/Users/<USER>/AppData/Roaming/QElectroTech/QElectroTech"
|
rem "C:/Users/<USER>/AppData/Roaming/QElectroTech/QElectroTech"
|
||||||
set command=bin\qelectrotech.exe --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ -style windowsvista %*
|
set command=bin\qelectrotech.exe --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ -platform windows:fontengine=freetype %*
|
||||||
@start %command%
|
@start %command%
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
-->
|
-->
|
||||||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
|
||||||
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
|
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
|
||||||
|
<?ifndef QtPlatformArgs ?>
|
||||||
|
<?define QtPlatformArgs="" ?>
|
||||||
|
<?endif?>
|
||||||
|
|
||||||
<Package
|
<Package
|
||||||
Name="QElectroTech"
|
Name="QElectroTech"
|
||||||
@@ -58,7 +61,7 @@
|
|||||||
Directory="DesktopFolder"
|
Directory="DesktopFolder"
|
||||||
Name="QElectroTech"
|
Name="QElectroTech"
|
||||||
Target="[INSTALLDIR]bin\qelectrotech.exe"
|
Target="[INSTALLDIR]bin\qelectrotech.exe"
|
||||||
Arguments="--common-elements-dir="[INSTALLDIR]elements/" --common-tbt-dir="[INSTALLDIR]titleblocks/" --lang-dir="[INSTALLDIR]lang/" -style windowsvista"
|
Arguments="--common-elements-dir="[INSTALLDIR]elements/" --common-tbt-dir="[INSTALLDIR]titleblocks/" --lang-dir="[INSTALLDIR]lang/" $(var.QtPlatformArgs)"
|
||||||
Icon="qet.ico"
|
Icon="qet.ico"
|
||||||
WorkingDirectory="INSTALLDIR" />
|
WorkingDirectory="INSTALLDIR" />
|
||||||
<RegistryValue Root="HKCU"
|
<RegistryValue Root="HKCU"
|
||||||
@@ -73,7 +76,7 @@
|
|||||||
Directory="ProgramMenuFolder"
|
Directory="ProgramMenuFolder"
|
||||||
Name="QElectroTech"
|
Name="QElectroTech"
|
||||||
Target="[INSTALLDIR]bin\qelectrotech.exe"
|
Target="[INSTALLDIR]bin\qelectrotech.exe"
|
||||||
Arguments="--common-elements-dir="[INSTALLDIR]elements/" --common-tbt-dir="[INSTALLDIR]titleblocks/" --lang-dir="[INSTALLDIR]lang/" -style windowsvista"
|
Arguments="--common-elements-dir="[INSTALLDIR]elements/" --common-tbt-dir="[INSTALLDIR]titleblocks/" --lang-dir="[INSTALLDIR]lang/" $(var.QtPlatformArgs)"
|
||||||
Icon="qet.ico"
|
Icon="qet.ico"
|
||||||
WorkingDirectory="INSTALLDIR" />
|
WorkingDirectory="INSTALLDIR" />
|
||||||
<RegistryValue Root="HKCU"
|
<RegistryValue Root="HKCU"
|
||||||
|
|||||||
+1
-1
@@ -8,5 +8,5 @@ rem Met la collection QET en lecture seule
|
|||||||
attrib +r elements/* /S /D
|
attrib +r elements/* /S /D
|
||||||
|
|
||||||
rem lance QElectroTech
|
rem lance QElectroTech
|
||||||
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ --data-dir=conf/ -style plastique %*
|
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ --data-dir=conf/ %*
|
||||||
@start %command%
|
@start %command%
|
||||||
|
|||||||
Reference in New Issue
Block a user