From 292b4ed55392b32c88317554c650546d6fd5f019 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 27 Jul 2020 20:00:57 -0700 Subject: [PATCH] build: Build with disk attached --- .github/workflows/build.yml | 6 ++++++ README.md | 2 +- tools/download-disk.ps1 | 6 ++++++ tools/download-disk.sh | 8 ++++++++ tools/make-distributable.sh | 3 --- 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 tools/download-disk.ps1 create mode 100644 tools/download-disk.sh delete mode 100644 tools/make-distributable.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2fb8419..57ea5d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,12 @@ jobs: with: fileName: 'win-certificate.pfx' encodedString: ${{ secrets.WINDOWS_CODESIGN_P12 }} + - name: Download disk image (ps1) + run: & tools/download-disk.ps1 + if: matrix.os == 'windows-latest' + - name: Download disk image (sh) + run: chmod +x tools/download-disk.sh && ./tools/download-disk.sh + if: matrix.os != 'windows-latest' - name: Install run: yarn - name: Make diff --git a/README.md b/README.md index 424d878..142d705 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is Mac OS 8, running in an [Electron](https://electronjs.org/) app. Yes, it's the full thing. I'm sorry. -![Screenshot](https://user-images.githubusercontent.com/1426799/88608634-0f7f4880-d037-11ea-8d3d-c2a5ef3a99d5.png) +![Screenshot](https://user-images.githubusercontent.com/1426799/88612692-a1d81a00-d040-11ea-85c9-c64142c503d5.jpg) ## Downloads diff --git a/tools/download-disk.ps1 b/tools/download-disk.ps1 new file mode 100644 index 0000000..3e0ef6e --- /dev/null +++ b/tools/download-disk.ps1 @@ -0,0 +1,6 @@ +cd src/basilisk +Start-FileDownload $env:DISK_URL -FileName disk.zip -Timeout 600000 +7z x disk.zip -y -aoa +Remove-Item disk.zip +cd ../.. +Tree ./src/basilisk /F diff --git a/tools/download-disk.sh b/tools/download-disk.sh new file mode 100644 index 0000000..da4487c --- /dev/null +++ b/tools/download-disk.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +cd src/basilisk +wget -O disk.zip $DISK_URL +unzip -o disk.zip +rm disk.zip +ls -al +cd - diff --git a/tools/make-distributable.sh b/tools/make-distributable.sh deleted file mode 100644 index 6a98d7d..0000000 --- a/tools/make-distributable.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -xe - -yarn make --skip-package --platform $PLATFORM --targets=@electron-forge/maker-$MAKER \ No newline at end of file