2016-11-05 21:20:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-11 06:14:56 +02:00
|
|
|
# Install nsis for installer creation
|
|
|
|
sudo apt-get install -qq nsis ninja-build
|
|
|
|
|
|
|
|
# MXE repository was too slow for Travis far too often
|
2021-07-15 23:32:13 +02:00
|
|
|
wget -nv https://github.com/vcmi/vcmi-deps-mxe/releases/download/2019-06-28/mxe-i686-w64-mingw32.shared-2019-06-28.tar
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
tar -xvf mxe-i686-w64-mingw32.shared-2019-06-28.tar
|
2018-02-11 06:14:56 +02:00
|
|
|
sudo dpkg -i mxe-*.deb
|
|
|
|
sudo apt-get install -f --yes
|
|
|
|
|
|
|
|
if false; then
|
2016-11-05 21:20:46 +02:00
|
|
|
# Add MXE repository and key
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
echo "deb http://pkg.mxe.cc/repos/apt trusty main" \
|
2016-11-05 21:20:46 +02:00
|
|
|
| sudo tee /etc/apt/sources.list.d/mxeapt.list
|
|
|
|
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9
|
2016-11-05 21:20:46 +02:00
|
|
|
|
|
|
|
# Install needed packages
|
|
|
|
sudo apt-get update -qq
|
|
|
|
|
2017-08-13 21:22:57 +02:00
|
|
|
sudo apt-get install -q --yes \
|
2016-11-05 21:20:46 +02:00
|
|
|
mxe-$MXE_TARGET-gcc \
|
|
|
|
mxe-$MXE_TARGET-boost \
|
|
|
|
mxe-$MXE_TARGET-zlib \
|
|
|
|
mxe-$MXE_TARGET-sdl2 \
|
|
|
|
mxe-$MXE_TARGET-sdl2-gfx \
|
|
|
|
mxe-$MXE_TARGET-sdl2-image \
|
|
|
|
mxe-$MXE_TARGET-sdl2-mixer \
|
|
|
|
mxe-$MXE_TARGET-sdl2-ttf \
|
|
|
|
mxe-$MXE_TARGET-ffmpeg \
|
|
|
|
mxe-$MXE_TARGET-qt \
|
Entities redesign and a few ERM features
* Made most Handlers derived from CHandlerBase and moved service API there.
* Declared existing Entity APIs.
* Added basic script context caching
* Started Lua script module
* Started Lua spell effect API
* Started script state persistence
* Started battle info callback binding
* CommitPackage removed
* Extracted spells::Caster to own header; Expanded Spell API.
* implemented !!MC:S, !!FU:E, !!FU:P, !!MA, !!VR:H, !!VR:C
* !!BU:C, !!BU:E, !!BU:G, !!BU:M implemented
* Allow use of "MC:S@varName@" to declare normal variable (technically v-variable with string key)
* Re-enabled VERM macros.
* !?GM0 added
* !?TM implemented
* Added !!MF:N
* Started !?OB, !!BM, !!HE, !!OW, !!UN
* Added basic support of w-variables
* Added support for ERM indirect variables
* Made !?FU regular trigger
* !!re (ERA loop receiver) implemented
* Fixed ERM receivers with zero args.
2018-03-17 16:58:30 +02:00
|
|
|
mxe-$MXE_TARGET-qtbase \
|
|
|
|
mxe-i686-w64-mingw32.static-luajit
|
2016-11-05 21:20:46 +02:00
|
|
|
|
2018-02-11 06:14:56 +02:00
|
|
|
fi # Disable
|
2017-06-12 17:17:10 +02:00
|
|
|
|
2016-11-05 21:20:46 +02:00
|
|
|
# alias for CMake
|
2021-07-05 19:04:17 +02:00
|
|
|
|
|
|
|
CMAKE_LOCATION=$(which cmake)
|
|
|
|
sudo mv $CMAKE_LOCATION $CMAKE_LOCATION.orig
|
|
|
|
sudo ln -s /usr/lib/mxe/usr/bin/$MXE_TARGET-cmake $CMAKE_LOCATION
|