mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Add CI
This commit is contained in:
@@ -0,0 +1,40 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Python 3
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- name: Install Python Dependencies
|
||||||
|
run: |
|
||||||
|
python3 -m pip install -U pip
|
||||||
|
pip3 install pyinstaller
|
||||||
|
|
||||||
|
- run: pyinstaller Opencore-Patcher.spec
|
||||||
|
|
||||||
|
- name: Upload to Artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Opencore-Patcher-${{ github.ref }}
|
||||||
|
path: dist/OpenCore-Patcher
|
||||||
|
- name: Upload to Release
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: dist/OpenCore-Patcher
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
file_glob: true
|
||||||
@@ -30,7 +30,3 @@ exe = EXE(pyz,
|
|||||||
upx_exclude=[],
|
upx_exclude=[],
|
||||||
runtime_tmpdir=None,
|
runtime_tmpdir=None,
|
||||||
console=True )
|
console=True )
|
||||||
app = BUNDLE(exe,
|
|
||||||
name='OpenCore-Patcher.app',
|
|
||||||
icon=None,
|
|
||||||
bundle_identifier=None)
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ from __future__ import print_function
|
|||||||
|
|
||||||
import binascii
|
import binascii
|
||||||
import plistlib
|
import plistlib
|
||||||
import re
|
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
Reference in New Issue
Block a user