Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from OmegaRogue/pull-request-no-injection
Browse files Browse the repository at this point in the history
Pull request no injection
theripper93 authored Sep 8, 2023
2 parents 78fe85f + 4cd64e9 commit 763044e
Showing 28 changed files with 3,190 additions and 860 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/electron",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser"
}
81 changes: 57 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -9,49 +9,72 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

# - name: install maker-flatpak dependencies
# run: |
# sudo apt-get install flatpak -y
# sudo apt-get install flatpak-builder -y
# sudo apt-get install elfutils -y
# sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# sudo flatpak install flathub org.freedesktop.Platform/x86_64/19.08 org.freedesktop.Sdk/x86_64/19.08 org.electronjs.Electron2.BaseApp/x86_64/stable -y

- name: Install dependencies
run: yarn

- name: Build for Linux
run: yarn make --platform linux




- name: Upload Zip to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/deb/x64/vtt-desktop-client_${{ github.event.release.tag_name }}_amd64.deb
asset_name: vtt-desktop-client_${{ github.event.release.tag_name }}_amd64.deb
asset_content_type: application/zip

- name: Upload Zip to Release 2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/rpm/x64/vtt-desktop-client-${{ github.event.release.tag_name }}-1.x86_64.rpm
asset_name: vtt-desktop-client-${{ github.event.release.tag_name }}-1.x86_64.rpm
asset_content_type: application/zip
- name: Upload Zip to Release 3
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/zip/linux/x64/vtt-desktop-client-linux-x64-${{ github.event.release.tag_name }}.zip
asset_name: vtt-desktop-client-linux-x64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip

# - name: Upload to Flathub
# uses: flatpak/flatpak-github-actions/flat-manager@v4
# with:
# repository: elementary
# flat-manager-url: https://flatpak-api.elementary.io
# token: some_very_hidden_token
# end-of-life: "The application has been renamed to..."
# end-of-life-rebase: "org.zbrown.Palette"


build-macos:
runs-on: macos-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: yarn
@@ -63,27 +86,32 @@ jobs:
run: |
cd out
zip -r macos.zip make
- name: Upload Zip to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/zip/darwin/x64/vtt-desktop-client-darwin-x64-${{ github.event.release.tag_name }}.zip
asset_name: vtt-desktop-client-macos-x64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
- name: Upload Zip to Release 2
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/vtt-desktop-client-1.3.6-x64.dmg
asset_name: vtt-desktop-client-1.3.6-x64.dmg
asset_content_type: application/zip

build-windows:
runs-on: windows-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: yarn
@@ -95,13 +123,18 @@ jobs:
run: |
$outputPath = "$PWD\out\win64.zip"
Compress-Archive -Path "out\make\squirrel.windows\x64" -DestinationPath $outputPath
- name: Upload Zip to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/win64.zip
asset_name: vtt-desktop-client-windows-x64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
- name: Upload Zip to Release 2
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out\make\zip\win32\x64\vtt-desktop-client-win32-x64-${{ github.event.release.tag_name }}.zip
asset_name: vtt-desktop-client-windows-x64-portable-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
Loading

0 comments on commit 763044e

Please sign in to comment.