Skip to content

Commit

Permalink
hopfully fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SL4F committed Sep 22, 2024
2 parents 47a37e1 + 5150989 commit 20934f8
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 95 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/build-linux.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/build-windows.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@




name: Build CPClient

# Controls when the action will run.
on:
# Triggers the workflow on push for production branch
push:
branches:
- "**"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: Build CPClient
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'

- name: Install dependencies
run: yarn install

- name: Build Typescript
run: yarn build-tsc

- name: Install
if: startsWith(matrix.os, 'ubuntu')
run: yarn build-linux

- name: Make and Publish (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: yarn run publish
env:
GITHUB_TOKEN: ${{ secrets.BUILD_TOKEN }}

- name: Make and Publish (WINDOWS)
if: startsWith(matrix.os, 'windows')
run: yarn build-win
env:
GITHUB_TOKEN: ${{ secrets.BUILD_TOKEN }}

- name: Make and Publish (MAC)
if: startsWith(matrix.os, 'macos')
run: yarn build-mac
env:
GITHUB_TOKEN: ${{ secrets.BUILD_TOKEN }}

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: ./dist/
2 changes: 1 addition & 1 deletion src/flash-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ const loadFlashPlugin = (app: App) => {
app.commandLine.appendSwitch('ppapi-flash-path', path.join(__dirname, pluginName));
};

export default loadFlashPlugin;
export default loadFlashPlugin;

0 comments on commit 20934f8

Please sign in to comment.