2017-08-15 14:38:32 +01:00
|
|
|
@echo off
|
|
|
|
set verbose off
|
|
|
|
set NOW=%TIME% %DATE%
|
|
|
|
echo "Build process started %NOW%"
|
|
|
|
|
|
|
|
echo "Building Ember assets..."
|
|
|
|
cd gui
|
|
|
|
call ember b -o dist-prod/ --environment=production
|
|
|
|
::Call allows the rest of the file to run
|
|
|
|
|
2021-09-07 11:32:22 -04:00
|
|
|
rd /s /q edition\static\public
|
|
|
|
mkdir edition\static\public
|
2017-08-15 14:38:32 +01:00
|
|
|
echo "Copying Ember assets folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\assets edition\static\public\assets
|
2017-08-15 14:38:32 +01:00
|
|
|
echo "Copying Ember codemirror folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\codemirror edition\static\public\codemirror
|
2019-01-15 20:13:45 +00:00
|
|
|
echo "Copying Ember prism folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\prism edition\static\public\prism
|
2017-08-15 14:38:32 +01:00
|
|
|
echo "Copying Ember tinymce folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\tinymce edition\static\public\tinymce
|
2019-04-19 15:09:12 +01:00
|
|
|
echo "Copying Ember pdfjs folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\pdfjs edition\static\public\pdfjs
|
2017-08-15 14:38:32 +01:00
|
|
|
echo "Copying Ember sections folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH gui\dist-prod\sections edition\static\public\sections
|
2017-08-15 14:38:32 +01:00
|
|
|
|
2021-09-07 11:32:22 -04:00
|
|
|
copy gui\dist-prod\*.* edition\static
|
|
|
|
copy gui\dist-prod\favicon.ico edition\static\public
|
|
|
|
copy gui\dist-prod\manifest.json edition\static\public
|
2017-08-15 14:38:32 +01:00
|
|
|
|
2021-09-07 11:32:22 -04:00
|
|
|
rd /s /q edition\static\mail
|
|
|
|
mkdir edition\static\mail
|
|
|
|
copy domain\mail\*.html edition\static\mail
|
|
|
|
copy core\database\templates\*.html edition\static
|
2017-08-15 14:38:32 +01:00
|
|
|
|
2021-09-07 11:32:22 -04:00
|
|
|
rd /s /q edition\static\scripts
|
|
|
|
mkdir edition\static\scripts
|
|
|
|
mkdir edition\static\scripts\mysql
|
|
|
|
mkdir edition\static\scripts\postgresql
|
|
|
|
mkdir edition\static\scripts\sqlserver
|
2017-08-15 14:38:32 +01:00
|
|
|
|
|
|
|
echo "Copying database scripts folder"
|
2021-09-07 11:32:22 -04:00
|
|
|
robocopy /e /NFL /NDL /NJH core\database\scripts\mysql edition\static\scripts\mysql
|
|
|
|
robocopy /e /NFL /NDL /NJH core\database\scripts\postgresql edition\static\scripts\postgresql
|
|
|
|
robocopy /e /NFL /NDL /NJH core\database\scripts\sqlserver edition\static\scripts\sqlserver
|
2019-06-24 17:01:56 +01:00
|
|
|
|
2021-09-07 11:32:22 -04:00
|
|
|
rd /s /q edition\static\onboard
|
|
|
|
mkdir edition\static\onboard
|
|
|
|
robocopy /e /NFL /NDL /NJH domain\onboard\*.json edition\static\onboard
|
2017-08-15 14:38:32 +01:00
|
|
|
|
|
|
|
echo "Compiling Windows"
|
|
|
|
set GOOS=windows
|
2020-02-15 15:42:54 +00:00
|
|
|
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-windows-amd64.exe edition/community.go
|
2017-08-15 14:38:32 +01:00
|
|
|
|
|
|
|
echo "Compiling Linux"
|
|
|
|
set GOOS=linux
|
2020-02-15 15:42:54 +00:00
|
|
|
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-linux-amd64 edition/community.go
|
2017-08-15 14:38:32 +01:00
|
|
|
|
|
|
|
echo "Compiling Darwin"
|
|
|
|
set GOOS=darwin
|
2020-02-15 15:42:54 +00:00
|
|
|
go build -mod=vendor -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-darwin-amd64 edition/community.go
|