From 7d909aca075565ec0fc3000ed0c704857b09fd08 Mon Sep 17 00:00:00 2001 From: eXhumer Date: Wed, 21 Aug 2024 23:32:36 -0600 Subject: [PATCH] chore: Small changes * Update README * use actions/setup-python for Windows as well * Remove unnecessary end of options for yarn commands * Use custom upload-artifact to fix uploading macOS builds without needing to double ZIP artifacts to preserve symlinks (actions/upload-artifact#93) Signed-off-by: eXhumer --- .github/workflows/build.yml | 13 +++++++------ README.md | 18 ++++++++++++------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39a093a..dfb1338 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: with: python-version: ${{ matrix.image.python }} check-latest: true - if: ${{ runner.os == 'macOS' }} + if: ${{ runner.os != 'Linux' }} - name: Install Python dependencies run: python3 -m pip install setuptools @@ -68,7 +68,7 @@ jobs: security unlock-keychain -p "$CI_KEYCHAIN_PASSWORD" build.keychain security import Certificates.p12 -k build.keychain -P "$CODESIGN_CERTIFICATE_PASSWORD" -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$CI_KEYCHAIN_PASSWORD" build.keychain - yarn run make -- --platform darwin --arch ${{ matrix.image.arch }} + yarn run make --platform darwin --arch ${{ matrix.image.arch }} - name: Build package if: ${{ runner.os != 'macOS' }} @@ -78,9 +78,9 @@ jobs: CASTLABS_EVS_PASSWORD: ${{ secrets.CASTLABS_EVS_PASSWORD }} run: | if [ "${{ runner.os }}" = "Linux" ]; then - yarn run package -- --platform linux --arch ${{ matrix.image.arch }} + yarn run package --platform linux --arch ${{ matrix.image.arch }} else - yarn run package -- --platform win32 --arch ${{ matrix.image.arch }} + yarn run package --platform win32 --arch ${{ matrix.image.arch }} fi - name: Upload package (Windows) @@ -112,9 +112,10 @@ jobs: - name: Upload package (macOS / ZIP) if: ${{ runner.os == 'macOS' }} - uses: actions/upload-artifact@v4 + uses: eXhumer/upload-artifact@v4 with: name: eXViewer-darwin-${{ matrix.image.arch }} - path: out/make/zip/darwin/${{ matrix.image.arch }}/* + path: out/${{ matrix.image.arch }}/ + follow-symlinks: false if-no-files-found: error compression-level: 9 \ No newline at end of file diff --git a/README.md b/README.md index edcbc7e..1526183 100644 --- a/README.md +++ b/README.md @@ -25,20 +25,26 @@ **This app is unofficial and is not associated in any way with the Formula 1 companies. F1, FORMULA ONE, FORMULA 1, FIA FORMULA ONE WORLD CHAMPIONSHIP, GRAND PRIX and related marks are trade marks of Formula One Licensing BV.** -## Packaging notes -* A [`postPackage`](https://www.electronforge.io/config/hooks#postpackage) hook has been added for macOS/win32 packages to be [VMP signed](https://github.com/castlabs/electron-releases/wiki/VMP) with [castlabs-evs](https://pypi.org/project/castlabs-evs/). `CASTLABS_EVS_USERNAME` & `CASTLABS_EVS_PASSWORD` are required as a result when trying to build the macOS/win32 packages and the `python` command must be available during packaging. For macOS builds, codesign build with custom entitlements as necessary and then notarize it with `APPLE_ID`, `APPLE_ID_PASSWORD` & `APPLE_TEAM_ID`. ## Acknowledgements * [CastLabs' Electron](https://github.com/castlabs/electron-releases) which allows Widevine protected stream playback. * [robvdpol's RaceControl](https://github.com/robvdpol/RaceControl) which provided an open-source desktop client for F1TV content streaming before F1TV used Widevine DRM. +## License + +This package is licensed under the AGPL-3.0-only License. See the [LICENSE](LICENSE.md) file for more information. + +
+ +Build informations + +## Packaging notes +* A [`postPackage`](https://www.electronforge.io/config/hooks#postpackage) hook has been added for macOS/win32 packages to be [VMP signed](https://github.com/castlabs/electron-releases/wiki/VMP) with [castlabs-evs](https://pypi.org/project/castlabs-evs/). `CASTLABS_EVS_USERNAME` & `CASTLABS_EVS_PASSWORD` are required as a result when trying to build the macOS/win32 packages and the `python` command must be available during packaging. For macOS builds, codesign build with custom entitlements as necessary and then notarize it with `APPLE_ID`, `APPLE_ID_PASSWORD` & `APPLE_TEAM_ID`. + ## Dependency version notes Some dependencies are locked to specific versions due to compatibility issues caused due to the newer versions. * [`eslint` is locked to `^8.57.0` due to `eslint-plugin-import` not being available for major version 9 yet.](https://github.com/import-js/eslint-plugin-import/pull/2996). * `@vercel/webpack-asset-relocator-loader` is locked to [`1.7.3` due to Electron Forge](https://github.com/electron/forge/issues/3600) -* `sass` is locked to [`1.77.6` due to breaking changes with mixed declarations](https://sass-lang.com/documentation/breaking-changes/mixed-decls/). `1.77.7` & above shows warning regarding this while launched in development mode due to loading SCSS from packages `bootstrap` & the player skin. -## License - -This package is licensed under the AGPL-3.0-only License. See the [LICENSE](LICENSE.md) file for more information. +
\ No newline at end of file