Skip to content

Commit fb2feb2

Browse files
authored
Mojave Flutter Image (#6)
Fixes #3
1 parent 68ac9cf commit fb2feb2

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Packer templates to build [macOS Anka images](https://veertu.com/anka-technology/) to use in CI:
44

55
* `mojave-base` image has only `brew` pre-installed
6-
* `mojave-xcode-10.0` image is based of `mojave-base` and has only `Xcode 10.0` pre-installed
6+
* `mojave-xcode-10.1` image is based of `mojave-base` and has only `Xcode 10.1` pre-installed
7+
* `mojave-flutter` image is based of `mojave-xcode-10.1` and has only [`Flutter`](https://flutter.dev/) pre-installed
78

89
# Building Base Image
910

templates/mojave-flutter.json

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"builders": [
3+
{
4+
"type": "veertu-anka",
5+
"vm_name": "mojave-flutter",
6+
"source_vm_name": "mojave-xcode-10.1",
7+
"cpu_count": "2",
8+
"ram_size": "8G",
9+
"disk_size": "100G",
10+
"boot_delay": "30s"
11+
}
12+
],
13+
"provisioners": [
14+
{
15+
"inline": [
16+
"brew --version",
17+
"brew update"
18+
],
19+
"type": "shell"
20+
},
21+
{
22+
"inline": [
23+
"brew cask install homebrew/cask-versions/java8"
24+
],
25+
"type": "shell"
26+
},
27+
{
28+
"inline": [
29+
"brew cask install android-sdk android-ndk"
30+
],
31+
"type": "shell"
32+
},
33+
{
34+
"inline": [
35+
"echo \"export ANDROID_SDK_ROOT=/usr/local/share/android-sdk\" >> ~/.profile",
36+
"echo \"export ANDROID_NDK_HOME=/usr/local/share/android-ndk\" >> ~/.profile",
37+
"source ~/.profile"
38+
],
39+
"type": "shell"
40+
},
41+
{
42+
"inline": [
43+
"sdkmanager --update"
44+
],
45+
"type": "shell"
46+
},
47+
{
48+
"inline": [
49+
"yes | sdkmanager --licenses"
50+
],
51+
"type": "shell"
52+
},
53+
{
54+
"inline": [
55+
"sdkmanager tools platform-tools emulator",
56+
"yes | sdkmanager \"platforms;android-28\" \"build-tools;28.0.3\""
57+
],
58+
"type": "shell"
59+
},
60+
{
61+
"inline": [
62+
"echo \"export FLUTTER_HOME=$HOME/flutter\" >> ~/.profile",
63+
"echo \"export PATH=$HOME/flutter:$HOME/flutter/bin/:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH\" >> ~/.profile",
64+
"source ~/.profile",
65+
"git clone https://github.com/flutter/flutter.git $FLUTTER_HOME",
66+
"cd $FLUTTER_HOME",
67+
"git checkout beta",
68+
"git checkout stable",
69+
"flutter doctor"
70+
],
71+
"type": "shell"
72+
},
73+
{
74+
"inline": [
75+
"brew install libimobiledevice ideviceinstaller ios-deploy"
76+
],
77+
"type": "shell"
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)