@@ -7,35 +7,31 @@ For generating:
7
7
- Use or install Ubuntu 22.04
8
8
9
9
- Install packages:
10
-
11
- ` sudo apt install mingw-w64 python3-pip git build-essential gcc nsis `
10
+ - - ` sudo apt install mingw-w64 python3-pip git build-essential gcc nsis `
12
11
13
12
- Install selected packages from Ubuntu 22.* 10*
13
+ - - ` wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-common_10.0.0-2_all.deb && sudo dpkg -i mingw-w64-common_10.0.0-2_all.deb `
14
+ - - (x64) ` wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-x86-64-dev_10.0.0-2_all.deb && sudo dpkg -i mingw-w64-x86-64-dev_10.0.0-2_all.deb `
15
+ - - (i686) ` wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-i686-dev_10.0.0-2_all.deb && sudo dpkg -i mingw-w64-i686-dev_10.0.0-2_all.deb `
14
16
15
- ` wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-common_10.0.0-2_all.deb && dpkg -i /mingw-w64-common_10.0.0-2_all.deb `
16
-
17
- ` wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw- w64-x86-64-dev_10.0.0-2_all.deb && dpkg -i mingw- w64-x86-64-dev_10.0.0-2_all.deb `
17
+ - Set correct cross-compiler
18
+ - - (x64) ` sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix `
19
+ - - (i686) ` sudo update-alternatives --set i686- w64-mingw32-g++ /usr/bin/i686- w64-mingw32-g++-posix `
18
20
19
21
- Install conan
20
-
21
- ` pip3 install conan `
22
+ - - ` sudo pip3 install conan `
22
23
23
24
- If necessary, clone vcmi repository
25
+ - - ` git clone https://github.com/vcmi/vcmi.git vcmi `
26
+ - - ` cd vcmi `
24
27
25
- ` git clone https://github.com/vcmi/vcmi.git vcmi `
26
-
27
- ` cd vcmi `
28
-
29
- - Run conan:
30
-
31
- ` conan install . --install-folder=conan-generated --no-imports --build=missing --profile:build=default --profile:host=CI/conan/mingw64-linux.jinja `
32
- (this will take a while)
28
+ - Run conan: (this will take a while)
29
+ - - (x64) ` conan install . --install-folder=conan-generated --no-imports --build=missing --profile:build=default --profile:host=CI/conan/mingw64-linux.jinja `
30
+ - - (i686) ` conan install . --install-folder=conan-generated --no-imports --build=missing --profile:build=default --profile:host=CI/conan/mingw32-linux.jinja `
33
31
34
32
- Remove temporary files that we won't need:
35
-
36
- ` conan remove --builds --src --force '*' `
33
+ - - ` conan remove --builds --src --force '*' `
37
34
38
35
- Create output archive with dependencies:
39
-
40
- ` tar -czvf vcmi-deps-windows-conan-w64.tgz -C ~/.conan data `
36
+ - - ` tar -czvf vcmi-deps-windows-conan-w64.tgz -C ~/.conan data `
41
37
0 commit comments