mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 12:55:55 +00:00
* Maintenance: Add workflow to automate builds of the main client for the user-script version of FFZ.
This commit is contained in:
parent
1cacacaecb
commit
7499f308a6
2 changed files with 81 additions and 7 deletions
67
.github/workflows/build.yml
vendored
Normal file
67
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
name: Build Main Client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Uses PNPM
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Uses Node.js 18.x
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Build the Client
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: Create Archive
|
||||||
|
id: artifact-upload-setp
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: client
|
||||||
|
path: |
|
||||||
|
dist
|
||||||
|
|
||||||
|
- name: Deploy (Clean)
|
||||||
|
uses: garygrossgarten/github-action-ssh@release
|
||||||
|
with:
|
||||||
|
command: $HOME/clean-client.sh
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
passphrase: ${{ secrets.SSH_PASSPHRASE }}
|
||||||
|
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Deploy (Copy)
|
||||||
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
with:
|
||||||
|
source: dist
|
||||||
|
target: client
|
||||||
|
strip_components: 1
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Deploy (Execute)
|
||||||
|
uses: garygrossgarten/github-action-ssh@release
|
||||||
|
with:
|
||||||
|
command: $HOME/update-client.sh
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
passphrase: ${{ secrets.SSH_PASSPHRASE }}
|
||||||
|
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
|
21
README.md
21
README.md
|
@ -1,7 +1,10 @@
|
||||||
FrankerFaceZ
|
FrankerFaceZ
|
||||||
============
|
============
|
||||||
|
|
||||||
Copyright (c) 2018 Dan Salvato LLC
|
[](https://github.com/FrankerFaceZ/FrankerFaceZ/actions/workflows/build.yml)
|
||||||
|
[](https://github.com/FrankerFaceZ/Extension/actions/workflows/build-extension.yml)
|
||||||
|
|
||||||
|
Copyright (c) 2024 Dan Salvato LLC
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0. See LICENSE.
|
Licensed under the Apache License, Version 2.0. See LICENSE.
|
||||||
|
|
||||||
|
@ -29,13 +32,17 @@ when a local copy of a file isn't present.
|
||||||
> which self-signs a certificate for hosting content via HTTPS. You will need
|
> which self-signs a certificate for hosting content via HTTPS. You will need
|
||||||
> to ensure your browser accepts a self-signed certificate for localhost.
|
> to ensure your browser accepts a self-signed certificate for localhost.
|
||||||
|
|
||||||
To make FrankerFaceZ load from your local development server, you must set
|
The user-script version of FrankerFaceZ is designed to make it easy to load
|
||||||
the local storage variable `ffzDebugMode` to true. Just run the following
|
from your local development server. Please switch to using the user-script
|
||||||
in your console on Twitch: `localStorage.ffzDebugMode = true;`
|
version for development purposes.
|
||||||
|
|
||||||
It should be noted that this project is not a browser extension that you
|
Then, you must set the local storage variable `ffzDebugMode` to true.
|
||||||
would load in your browser's extensions system. You still need the FrankerFaceZ
|
Just run the following in your console on Twitch:
|
||||||
extension or user-script for your browser.
|
```javascript
|
||||||
|
localStorage.ffzDebugMode = true;
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
You can edit the project's icon font using the `pnpm font` command. This will
|
You can edit the project's icon font using the `pnpm font` command. This will
|
||||||
create a new Fontello session, if one doesn't already exist, and open your
|
create a new Fontello session, if one doesn't already exist, and open your
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue