Skip to content
Snippets Groups Projects
cabinetos.json 2.51 KiB
Newer Older
Louis's avatar
Louis committed
{
  "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"
	  ]
	}

  ]
}