-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
postprocess-win.bat
executable file
·47 lines (34 loc) · 1.09 KB
/
postprocess-win.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@ECHO OFF
cd > PWD
set /p PWD= < PWD
set PWD=%PWD%\..\..
set RESOURCEDIR=%PWD%\windows\resources
set TSDIR=%PWD%\librecad\ts
set DOCDIR=%PWD%\librecad\support\doc
REM Generate Help Files
cd "%DOCDIR%"
qcollectiongenerator LibreCADdoc.qhcp
cd "%PWD%"
REM Postprocess for windows
echo " Copying fonts and patterns"
mkdir "%RESOURCEDIR%\fonts"
mkdir "%RESOURCEDIR%\patterns"
mkdir "%RESOURCEDIR%\library"
mkdir "%RESOURCEDIR%\doc"
mkdir "%RESOURCEDIR%\library\misc"
mkdir "%RESOURCEDIR%\library\templates"
copy "librecad\support\patterns\*.dxf" "%RESOURCEDIR%\patterns"
copy "librecad\support\fonts\*.lff" "%RESOURCEDIR%\fonts"
copy "librecad\support\doc\*.qhc" "%RESOURCEDIR%\doc"
copy "librecad\support\doc\*.qch" "%RESOURCEDIR%\doc"
copy "librecad\support\library\misc\*.dxf" "%RESOURCEDIR%\library\misc"
copy "librecad\support\library\templates\*.dxf" "%RESOURCEDIR%\library\templates"
REM Generate translations
echo "Generating Translations"
lrelease librecad\src\src.pro
mkdir "%RESOURCEDIR%\qm"
cd "%TSDIR%"
for /f %%F in ('dir /b *.qm') do (
copy "%%F" "%RESOURCEDIR%\qm\%%F"
)
cd "%PWD%"