build: Build with disk attached

This commit is contained in:
Felix Rieseberg 2020-07-27 20:00:57 -07:00
parent 5cc57acde1
commit 292b4ed553
5 changed files with 21 additions and 4 deletions

View File

@ -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

View File

@ -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

6
tools/download-disk.ps1 Normal file
View File

@ -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

8
tools/download-disk.sh Normal file
View File

@ -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 -

View File

@ -1,3 +0,0 @@
#!/bin/bash -xe
yarn make --skip-package --platform $PLATFORM --targets=@electron-forge/maker-$MAKER