mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Merge pull request #398 from mb3m/fix-win-build
Fix Windows build script
This commit is contained in:
commit
69940cb7f1
1 changed files with 11 additions and 2 deletions
13
build.bat
13
build.bat
|
@ -7,6 +7,7 @@ echo "Building Ember assets..."
|
||||||
cd gui
|
cd gui
|
||||||
call ember b -o dist-prod/ --environment=production
|
call ember b -o dist-prod/ --environment=production
|
||||||
::Call allows the rest of the file to run
|
::Call allows the rest of the file to run
|
||||||
|
cd ..
|
||||||
|
|
||||||
rd /s /q edition\static\public
|
rd /s /q edition\static\public
|
||||||
mkdir edition\static\public
|
mkdir edition\static\public
|
||||||
|
@ -25,18 +26,26 @@ robocopy /e /NFL /NDL /NJH gui\dist-prod\sections edition\static\public\sections
|
||||||
echo "Copying i18n folder"
|
echo "Copying i18n folder"
|
||||||
robocopy /e /NFL /NDL /NJH gui\dist-prod\i18n edition\static\public\i18n
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\i18n edition\static\public\i18n
|
||||||
|
|
||||||
|
echo "Copying static files"
|
||||||
copy gui\dist-prod\*.* edition\static
|
copy gui\dist-prod\*.* edition\static
|
||||||
|
|
||||||
|
echo "Copying favicon.ico"
|
||||||
copy gui\dist-prod\favicon.ico edition\static\public
|
copy gui\dist-prod\favicon.ico edition\static\public
|
||||||
|
|
||||||
|
echo "Copying manifest.json"
|
||||||
copy gui\dist-prod\manifest.json edition\static\public
|
copy gui\dist-prod\manifest.json edition\static\public
|
||||||
|
|
||||||
|
echo "Copying mail templates"
|
||||||
rd /s /q edition\static\mail
|
rd /s /q edition\static\mail
|
||||||
mkdir edition\static\mail
|
mkdir edition\static\mail
|
||||||
copy domain\mail\*.html edition\static\mail
|
copy domain\mail\*.html edition\static\mail
|
||||||
|
|
||||||
|
echo "Copying database templates"
|
||||||
copy core\database\templates\*.html edition\static
|
copy core\database\templates\*.html edition\static
|
||||||
|
|
||||||
rd /s /q edition\static\i18n
|
rd /s /q edition\static\i18n
|
||||||
mkdir edition\static\i18n
|
mkdir edition\static\i18n
|
||||||
robocopy /e /NFL /NDL /NJH gui\dist-prod\i18n\*.json edition\static\i18n
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\i18n edition\static\i18n *.json
|
||||||
|
|
||||||
rd /s /q edition\static\scripts
|
rd /s /q edition\static\scripts
|
||||||
mkdir edition\static\scripts
|
mkdir edition\static\scripts
|
||||||
|
@ -51,7 +60,7 @@ robocopy /e /NFL /NDL /NJH core\database\scripts\sqlserver edition\static\script
|
||||||
|
|
||||||
rd /s /q edition\static\onboard
|
rd /s /q edition\static\onboard
|
||||||
mkdir edition\static\onboard
|
mkdir edition\static\onboard
|
||||||
robocopy /e /NFL /NDL /NJH domain\onboard\*.json edition\static\onboard
|
robocopy /e /NFL /NDL /NJH domain\onboard edition\static\onboard *.json
|
||||||
|
|
||||||
echo "Compiling Windows"
|
echo "Compiling Windows"
|
||||||
set GOOS=windows
|
set GOOS=windows
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue