Skip to content

Commit 4c1ed1b

Browse files
committed
[publish] Add support for new SC converter that requires libtidy
1 parent d5be9c2 commit 4c1ed1b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.appveyor.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ environment:
2323
gettextSrcBaseName: gettext-0.23.1
2424
gettextURL: https://github.com/vslavik/gettext-tools-windows/releases/download/v0.23.1/gettext-tools-windows-0.23.1.zip
2525
gettextBaseName: gettext-tools-windows-0.23.1
26+
tidyURL: https://github.com/htacg/tidy-html5/releases/download/5.8.0/tidy-5.8.0-win64.zip
27+
tidyBaseName: tidy-5.8.0-win64
2628
matrix:
2729
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
2830
VSPATH: C:\Program Files\Microsoft Visual Studio\2022\Community\SDK\ScopeCppSDK\vc15\VC\bin
@@ -85,11 +87,15 @@ before_build:
8587
- ps: if ($env:scConverterEnabled) { cp c:\$env:gettextBaseName\bin\libgettextpo-0.dll c:\$env:gettextBaseName\bin\libgettextpo.dll }
8688
- ps: if ($env:scConverterEnabled) { (dumpbin /EXPORTS c:\$env:gettextBaseName\bin\libgettextpo.dll) -match "^.*\b(po_.*)$" -replace "^.*\b(po_.*)$","`$1" >> libgettextpo.def }
8789
- ps: if ($env:scConverterEnabled) { lib /def:libgettextpo.def /out:c:\$env:gettextBaseName\lib\libgettextpo.lib }
90+
91+
- ps: appveyor DownloadFile $env:tidyURL -FileName c:\$env:tidyBaseName.zip
92+
- ps: 7z e c:\$env:tidyBaseName.zip -spf -oc:\
93+
8894
- if [1]==[%scConverterEnabled%] git clone -q https://github.com/Stellarium/stellarium-skyculture-converter c:\skyculture-converter
8995
- if [1]==[%scConverterEnabled%] mkdir c:\skyculture-converter\build
9096
- if [1]==[%scConverterEnabled%] cd c:\skyculture-converter\build
9197
- if [1]==[%scConverterEnabled%] git show --summary
92-
- if [1]==[%scConverterEnabled%] cmake -DCMAKE_PREFIX_PATH=c:\%gettextBaseName% -DCMAKE_INSTALL_PREFIX=c:\sc-converter -G "%msvcname%" %cmake_args% ..
98+
- if [1]==[%scConverterEnabled%] cmake -DCMAKE_PREFIX_PATH=c:\%gettextBaseName%;c:\%tidyBaseName% -DCMAKE_INSTALL_PREFIX=c:\sc-converter -G "%msvcname%" %cmake_args% ..
9399
- if [1]==[%scConverterEnabled%] if [%PUBLISH_BINARY%]==[true] cmake --build . --config %configuration% --target install -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
94100

95101
- cd c:\stellarium
@@ -110,7 +116,9 @@ after_test:
110116
- if [%PUBLISH_BINARY%]==[true] if [%scConverterEnabled%]==[1] copy c:\%gettextBaseName%\bin\libgettextpo-0.dll c:\stellarium-%qtver%-%qtbin%\bin\libgettextpo.dll
111117
- if [%PUBLISH_BINARY%]==[true] if [%scConverterEnabled%]==[1] copy c:\%gettextBaseName%\bin\libintl-8.dll c:\stellarium-%qtver%-%qtbin%\bin\
112118
- if [%PUBLISH_BINARY%]==[true] if [%scConverterEnabled%]==[1] copy c:\%gettextBaseName%\bin\libiconv-2.dll c:\stellarium-%qtver%-%qtbin%\bin\
119+
- if [%PUBLISH_BINARY%]==[true] if [%scConverterEnabled%]==[1] copy c:\%tidyBaseName%\bin\tidy.dll c:\stellarium-%qtver%-%qtbin%\bin\
113120
- if [%PUBLISH_BINARY%]==[true] if [%scConverterEnabled%]==[1] copy c:\sc-converter\skyculture-converter.exe c:\stellarium-%qtver%-%qtbin%\bin\
121+
- if [%PUBLISH_BINARY%]==[true] if [%scConverterEnabled%]==[1] copy c:\sc-converter\Qt6Xml.dll c:\stellarium-%qtver%-%qtbin%\bin\
114122
- if [%USE_EXT_LIBGLES%]==[true] appveyor DownloadFile https://github.com/Stellarium/stellarium-data/releases/download/qt-5.6/libGLES-Win%BITS%.zip -FileName c:\stellarium\build-%qtver%-%qtbin%\libGLES.zip
115123
- if [%USE_EXT_LIBGLES%]==[true] 7z e c:\stellarium\build-%qtver%-%qtbin%\libGLES.zip -aoa -oc:\stellarium-%qtver%-%qtbin%\qtstuff
116124
- if [%PUBLISH_BINARY%]==[true] appveyor DownloadFile https://github.com/Stellarium/stellarium-data/releases/download/mesa-win-20.1.8/opengl32sw-%PKGARCH%.dll -FileName c:\stellarium-%qtver%-%qtbin%\qtstuff\opengl32sw.dll

0 commit comments

Comments
 (0)