Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"variables": {},
"builders": [{
"type": "arm",
"file_urls" : ["https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64.img.xz"],
"file_checksum_url": "https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64.img.xz.sha256",
"file_checksum_type": "sha256",
"file_target_extension": "xz",
"file_unarchive_cmd": ["xz", "-d", "$ARCHIVE_PATH"],
"image_build_method": "resize",
"image_path": "cabinetos.img",
"image_size": "4G",
"image_type": "dos",
"image_partitions": [
{
"name": "boot",
"type": "c",
"start_sector": "8192",
"filesystem": "vfat",
"size": "256M",
"mountpoint": "/boot"
},
{
"name": "root",
"type": "83",
"start_sector": "532480",
"filesystem": "ext4",
"size": "0",
"mountpoint": "/"
}
],
"image_chroot_env": ["PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"],
"qemu_binary_source_path": "/usr/bin/qemu-arm-static",
"qemu_binary_destination_path": "/usr/bin/qemu-arm-static"
}],
"provisioners": [
{
"type": "shell",
"inline": [
"touch /boot/ssh"
]
},
{
"type": "shell",
"inline": [
"apt-get -qq update",
"apt-get -y upgrade",
"apt-get install -y mesa-vulkan-drivers libvulkan-dev libvulkan1 vulkan-tools"
]
},
{
"type": "file",
"source": "build/cabinet/userconf.txt",
"destination": "/boot/userconf.txt"
},
{
"type": "file",
"source": "build/cabinet/config.txt",
"destination": "/boot/config.txt"
},
{
"type": "file",
"source": "build/cabinet/picade.dtbo",
"destination": "/boot/overlays/picade.dtbo"
},
{
"type": "file",
"source": "build/cabinet/asound.conf",
"destination": "/etc/asound.conf"
},
{
"type": "file",
"source": "build/cabinet/picade.udev.rules",
"destination": "/etc/udev/rules.d/10-picade.rules"
},
{
"type": "file",
"source": "build/cabinet/autoboot.service",
"destination": "/etc/systemd/system/game_core.service"
},
{
"type": "file",
"source": "build/cabinet/wpa_supplicant.conf",
"destination": "/etc/wpa_supplicant.conf"
},
{
"type": "shell",
"inline": [
"cd /var",
"wget -O game.zip https://lab.lcr.gr/microhacks/fantastqiue/-/jobs/artifacts/trunk/raw/dist/linux.arm64.zip?job=package-all",
"mkdir game",
"unzip game.zip -d game",
"mv game/game_core.arm64 game/game_core"
]
},
{
"type": "shell",
"inline": [
"rm /etc/xdg/autostart/piwiz.desktop",
"rm /etc/xdg/autostart/pprompt.desktop"
]
}
]
}