@@ -38,32 +38,40 @@ jobs:
38
38
39
39
- name : Compile
40
40
run : |
41
- mkdir release
42
- cmake -S ${{github.workspace}} -B ${{github.workspace}}/release -DCMAKE_PREFIX_PATH=${{github.workspace}}/vcpkg_installed/x64-windows -DSPELLCHECKER_HUNSPELL=OFF -DSPELLCHECKER_NUSPELL=ON
43
- cmake --build ${{github.workspace}}/release --config ${{env.BUILD_TYPE}}
41
+ mkdir build-cmake
42
+ cmake -S ${{github.workspace}} -B ${{github.workspace}}/build-cmake -DCMAKE_PREFIX_PATH=${{github.workspace}}/vcpkg_installed/x64-windows -DSPELLCHECKER_HUNSPELL=OFF -DSPELLCHECKER_NUSPELL=ON
43
+ cmake --build ${{github.workspace}}/build-cmake --config ${{env.BUILD_TYPE}}
44
44
45
45
- name : Create Package
46
46
shell : cmd
47
47
run : |
48
48
mkdir InyokaEdit\plugins
49
49
mkdir InyokaEdit\community
50
- copy release\.. \InyokaEdit.exe InyokaEdit\InyokaEdit.exe
50
+ copy build-cmake\application\Release \InyokaEdit.exe InyokaEdit\InyokaEdit.exe
51
51
windeployqt --release --no-translations --no-opengl-sw InyokaEdit\InyokaEdit.exe
52
52
lconvert -o InyokaEdit\translations\qt_de.qm ${env:QT_ROOT_DIR}\translations\qtbase_de.qm ${env:QT_ROOT_DIR}\translations\qtwebengine_de.qm
53
53
copy COPYING InyokaEdit\
54
54
copy application\3rdparty\miniz\LICENSE InyokaEdit\Miniz_License.txt
55
55
copy packaging\Windows\ICU_License.txt InyokaEdit\
56
56
copy packaging\Windows\Nuspell_License.txt InyokaEdit\
57
- xcopy /y /d vcpkg_installed\*.dll InyokaEdit\
57
+ xcopy /y /d vcpkg_installed\x64-windows\bin\ *.dll InyokaEdit\
58
58
xcopy /i /e /s packaging\Windows\dicts InyokaEdit\dicts\
59
- copy release\..\plugins\*.dll InyokaEdit\plugins\
59
+ copy build-cmake\plugins\highlighter\Release\*.dll InyokaEdit\plugins\
60
+ copy build-cmake\plugins\hotkey\Release\*.dll InyokaEdit\plugins\
61
+ copy build-cmake\plugins\spellchecker-nuspell\Release\*.dll InyokaEdit\plugins\
62
+ copy build-cmake\plugins\uu_knowledgebox\Release\*.dll InyokaEdit\plugins\
63
+ copy build-cmake\plugins\uu_tabletemplate\Release\*.dll InyokaEdit\plugins\
60
64
chcp 65001 && xcopy /i /e /s community\* InyokaEdit\community\
61
- $buildnr = git rev-parse --short main
62
- 7z a "InyokaEdit-Windows_$($buildnr).zip" .\InyokaEdit\
65
+ git rev-parse --short main > buildnr.txt
66
+ set /p buildnr= < buildnr.txt
67
+ del buildnr.txt
68
+ set output_zip=InyokaEdit-Windows_%buildnr%.zip
69
+ set output_exe=InyokaEdit-Windows_%buildnr%.exe
70
+ 7z a %output_zip% .\InyokaEdit\
63
71
copy packaging\Windows\inyokaedit.nsi inyokaedit.nsi
64
72
copy packaging\Windows\inyokaedit.ico inyokaedit.ico
65
73
makensis inyokaedit.nsi
66
- ren InyokaEdit_Installer.exe "InyokaEdit-Windows_$($buildnr).exe"
74
+ ren InyokaEdit_Installer.exe %output_exe%
67
75
68
76
- uses : actions/upload-artifact@v4
69
77
with :
0 commit comments