Compare commits
7 Commits
46c1c6fb17
...
df6d0bd2da
Author | SHA1 | Date |
---|---|---|
|
df6d0bd2da | |
|
78b938facf | |
|
539b11bbf4 | |
|
4de41eb836 | |
|
4a11725b1e | |
|
a0eef4036a | |
|
a341059ab3 |
|
@ -15,7 +15,7 @@ jobs:
|
|||
name: Validate pull request title
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: amannn/action-semantic-pull-request@v5
|
||||
- uses: amannn/action-semantic-pull-request@v6
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
class Quickemu < Formula
|
||||
desc "Quickly create and run optimised Windows, macOS and Linux virtual machines"
|
||||
homepage "https://github.com/quickemu-project/quickemu"
|
||||
|
||||
livecheck do
|
||||
url :stable
|
||||
end
|
||||
|
||||
stable do
|
||||
latest_release = JSON.parse(Utils.safe_popen_read("curl", "-s", "https://api.github.com/repos/quickemu-project/quickemu/releases/latest"))
|
||||
version latest_release["tag_name"]
|
||||
url "https://api.github.com/repos/quickemu-project/quickemu/tarball/#{latest_release["tag_name"]}"
|
||||
end
|
||||
|
||||
head "https://github.com/quickemu-project/quickemu.git"
|
||||
license "MIT"
|
||||
|
||||
depends_on "bash"
|
||||
depends_on "cdrtools"
|
||||
depends_on "coreutils"
|
||||
depends_on "jq"
|
||||
depends_on "python3"
|
||||
depends_on "qemu"
|
||||
depends_on "samba"
|
||||
depends_on "socat"
|
||||
depends_on "swtpm"
|
||||
depends_on "usbutils"
|
||||
depends_on "zsync"
|
||||
|
||||
def install
|
||||
bin.install "quickemu"
|
||||
bin.install "quickget"
|
||||
end
|
||||
|
||||
test do
|
||||
# `test do` will create, run in and delete a temporary directory.
|
||||
#
|
||||
# This test will fail and we won't accept that! For Homebrew/homebrew-core
|
||||
# this will need to be a test that verifies the functionality of the
|
||||
# software. Run the test with `brew test quickemu`. Options passed
|
||||
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
|
||||
#
|
||||
# The installed folder is not in the path, so use the entire path to any
|
||||
# executables being tested: `system bin/"program", "do", "something"`.
|
||||
system "false"
|
||||
end
|
||||
end
|
10
flake.lock
10
flake.lock
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1749727998,
|
||||
"narHash": "sha256-mHv/yeUbmL91/TvV95p+mBVahm9mdQMJoqaTVTALaFw=",
|
||||
"rev": "fd487183437963a59ba763c0cc4f27e3447dd6dd",
|
||||
"revCount": 803882,
|
||||
"lastModified": 1756217674,
|
||||
"narHash": "sha256-TH1SfSP523QI7kcPiNtMAEuwZR3Jdz0MCDXPs7TS8uo=",
|
||||
"rev": "4e7667a90c167f7a81d906e5a75cba4ad8bee620",
|
||||
"revCount": 808864,
|
||||
"type": "tarball",
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2505.803882%2Brev-fd487183437963a59ba763c0cc4f27e3447dd6dd/019767cd-a737-7649-ab6d-467a58ba9f92/source.tar.gz"
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2505.808864%2Brev-4e7667a90c167f7a81d906e5a75cba4ad8bee620/0198eaa3-105a-74fa-a9b2-0a930acea8de/source.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
|
|
8
quickemu
8
quickemu
|
@ -762,7 +762,7 @@ function configure_os_quirks() {
|
|||
|
||||
case ${guest_os} in
|
||||
windows-server) NET_DEVICE="e1000";;
|
||||
*bsd|linux*|windows) NET_DEVICE="virtio-net";;
|
||||
*bsd|linux*|windows) NET_DEVICE="virtio-net-pci";;
|
||||
freedos) sound_card="sb16"
|
||||
NET_DEVICE="pcnet";;
|
||||
*solaris) usb_controller="xhci"
|
||||
|
@ -780,7 +780,7 @@ function configure_os_quirks() {
|
|||
big-sur|monterey|ventura|sonoma|sequoia)
|
||||
BALLOON="-device virtio-balloon"
|
||||
MAC_DISK_DEV="virtio-blk-pci"
|
||||
NET_DEVICE="virtio-net"
|
||||
NET_DEVICE="virtio-net-pci"
|
||||
USB_HOST_PASSTHROUGH_CONTROLLER="nec-usb-xhci"
|
||||
GUEST_TWEAKS+=" -global nec-usb-xhci.msi=off"
|
||||
sound_card="${sound_card:-usb-audio}"
|
||||
|
@ -1166,7 +1166,7 @@ function vm_boot() {
|
|||
MAC_BOOTLOADER=""
|
||||
MAC_MISSING=""
|
||||
MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}"
|
||||
NET_DEVICE="${NET_DEVICE:-virtio-net}"
|
||||
NET_DEVICE="${NET_DEVICE:-virtio-net-pci}"
|
||||
SOUND=""
|
||||
SPICE=""
|
||||
SMM="${SMM:-off}"
|
||||
|
@ -1365,7 +1365,7 @@ function vm_boot() {
|
|||
fi
|
||||
|
||||
# shellcheck disable=SC2054,SC2206
|
||||
args+=(-nic bridge,br=${network},model=virtio-net-pci${MAC})
|
||||
args+=(-nic bridge,br=${network},model=${NET_DEVICE}${MAC})
|
||||
else
|
||||
echo " - Network: User (${NET_DEVICE})"
|
||||
# shellcheck disable=SC2054,SC2206
|
||||
|
|
2
quickget
2
quickget
|
@ -3043,7 +3043,7 @@ web_get https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.10.0/
|
|||
web_get https://www.spice-space.org/download/windows/usbdk/UsbDk_1.0.22_x64.msi "${VM_PATH}/unattended"
|
||||
|
||||
echo "Making unattended.iso"
|
||||
mkisofs -quiet -l -o "${VM_PATH}/unattended.iso" "${VM_PATH}/unattended/"
|
||||
mkisofs -quiet -J -o "${VM_PATH}/unattended.iso" "${VM_PATH}/unattended/"
|
||||
}
|
||||
|
||||
function handle_curl_error() {
|
||||
|
|
Loading…
Reference in New Issue