Skip to content

Commit

Permalink
add ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Oct 10, 2024
1 parent 93ff29e commit 570bb43
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: build
on:
workflow_dispatch:
push:
branches:
- canary

env:
NODE_VERSION: 20

jobs:
windows:
name: "Windows"
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm i
working-directory: app
- name: Build
run: npm run electron:build
working-directory: app
env:
NODE_OPTIONS: "--openssl-legacy-provider"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows
path: app/dist_electron/win-unpacked
linux:
name: "Linux"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm i
working-directory: app
- name: Build
run: npm run electron:build
working-directory: app
env:
NODE_OPTIONS: "--openssl-legacy-provider"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux
path: app/dist_electron/linux-unpacked
2 changes: 1 addition & 1 deletion app/components/scrcpy-plus-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const env = process.env;
export default {
data() {
return {
version: env.version,
version: this.$config.public.version,
scrcpyVersion: localStorage.getItem("scrcpyVersion"),
adbVersion: localStorage.getItem("adbVersion"),
Expand Down
2 changes: 1 addition & 1 deletion app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineNuxtConfig({
modules: ['nuxt-electron', '@nuxtjs/tailwindcss'],
runtimeConfig: {
public: {
version: "3.0.0",
version: "3.0.0-canary",
scrcpyPath: "resources/scrcpy/",
releasesUrl: "https://api.github.com/repos/Frontesque/scrcpy-plus/releases",
devicePollRate: 1250,
Expand Down

0 comments on commit 570bb43

Please sign in to comment.