2018-11-04 18:32:08 +02:00
|
|
|
@ECHO OFF
|
|
|
|
|
2020-01-29 01:40:16 +02:00
|
|
|
REM NOTE: You can try this to install Meteor on Windows, it works:
|
|
|
|
REM https://github.com/zodern/windows-meteor-installer/
|
|
|
|
|
|
|
|
REM Installing Meteor with Chocolatey does not currently work.
|
|
|
|
|
2019-03-21 21:37:38 +02:00
|
|
|
REM NOTE: THIS .BAT DOES NOT WORK !!
|
|
|
|
REM Use instead this webpage instructions to build on Windows:
|
2018-11-04 18:32:08 +02:00
|
|
|
REM https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows
|
|
|
|
REM Please add fix PRs, like config of MongoDB etc.
|
|
|
|
|
|
|
|
md C:\repos
|
|
|
|
cd C:\repos
|
|
|
|
|
|
|
|
REM Install chocolatey
|
|
|
|
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
|
|
|
|
|
2019-12-05 14:31:28 +02:00
|
|
|
choco install -y git curl python2 dotnet4.5.2 nano mongodb-3 mongoclient meteor
|
2018-11-04 18:32:08 +02:00
|
|
|
|
2020-02-20 20:46:25 +02:00
|
|
|
curl -O https://nodejs.org/dist/v12.16.1/node-v12.16.1-x64.msi
|
|
|
|
call node-v12.16.1-x64.msi
|
2018-11-04 18:32:08 +02:00
|
|
|
|
|
|
|
call npm config -g set msvs_version 2015
|
|
|
|
call meteor npm config -g set msvs_version 2015
|
|
|
|
|
|
|
|
call npm -g install npm
|
|
|
|
call npm -g install node-gyp
|
2019-08-29 00:18:15 +03:00
|
|
|
call npm -g install fibers
|
2018-11-04 18:32:08 +02:00
|
|
|
cd C:\repos
|
|
|
|
git clone https://github.com/wekan/wekan.git
|
|
|
|
cd wekan
|
|
|
|
git checkout edge
|
|
|
|
echo "Building Wekan."
|
|
|
|
REM del /S /F /Q packages
|
2019-04-20 15:18:33 +03:00
|
|
|
REM ## REPOS BELOW ARE INCLUDED TO WEKAN
|
|
|
|
REM md packages
|
|
|
|
REM cd packages
|
|
|
|
REM git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
|
|
|
|
REM git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
|
|
|
REM git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-cas.git
|
|
|
|
REM git clone --depth 1 -b master https://github.com/wekan/wekan-ldap.git
|
|
|
|
REM git clone --depth 1 -b master https://github.com/wekan/wekan-scrollbar.git
|
|
|
|
REM git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-oidc.git
|
|
|
|
REM git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
|
|
|
|
REM move meteor-accounts-oidc/packages/switch_accounts-oidc wekan_accounts-oidc
|
|
|
|
REM move meteor-accounts-oidc/packages/switch_oidc wekan_oidc
|
|
|
|
REM del /S /F /Q meteor-accounts-oidc
|
2018-11-04 18:32:08 +02:00
|
|
|
REM sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
|
|
|
|
cd ..
|
|
|
|
REM del /S /F /Q node_modules
|
|
|
|
call meteor npm install
|
|
|
|
REM del /S /F /Q .build
|
|
|
|
call meteor build .build --directory
|
|
|
|
copy fix-download-unicode\cfs_access-point.txt .build\bundle\programs\server\packages\cfs_access-point.js
|
|
|
|
cd .build\bundle\programs\server
|
|
|
|
call meteor npm install
|
|
|
|
REM cd C:\repos\wekan\.meteor\local\build\programs\server
|
|
|
|
REM del node_modules
|
|
|
|
cd C:\repos\wekan
|
|
|
|
call start-wekan.bat
|