1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-25 03:32:54 +01:00

come on ci

This commit is contained in:
Puyodead1 2023-12-21 18:34:57 -05:00
parent 6c769e5ff4
commit c5efb84f9e
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
3 changed files with 11 additions and 9 deletions

View File

@ -31,6 +31,8 @@ jobs:
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libsoup-3.0-dev libjavascriptcoregtk-4.1-dev sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libsoup-3.0-dev libjavascriptcoregtk-4.1-dev
- name: Install Frontend Dependencies - name: Install Frontend Dependencies
run: pnpm i run: pnpm i
- name: Run version generator
run: pnpm run ci:prebuild
- uses: spacebarchat/tauri-action@dev - uses: spacebarchat/tauri-action@dev
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -105,16 +105,16 @@
"url": "git+https://github.com/spacebarchat/client.git" "url": "git+https://github.com/spacebarchat/client.git"
}, },
"scripts": { "scripts": {
"build": "npm run ci:prebuild && tsc && vite build", "build": "tsc && vite build",
"ci:prebuild": "node scripts/tauri-version.js", "ci:prebuild": "node scripts/tauri-version.js",
"dev": "vite", "dev": "vite",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "pnpx prettier . --write", "lint:fix": "pnpx prettier . --write",
"preview": "vite preview", "preview": "vite preview",
"tauri:dev": "tauri dev", "tauri:dev": "pnpm run ci:prebuild && tauri dev",
"tauri:build": "tauri build", "tauri:build": "pnpm run ci:prebuild && tauri build",
"tauri:android:dev": "tauri android dev", "tauri:android:dev": "pnpm run ci:prebuild && tauri android dev",
"tauri:android:build": "tauri android build" "tauri:android:build": "pnpm run ci:prebuild && tauri android build"
}, },
"type": "module", "type": "module",
"version": "0.1.1" "version": "0.1.1"

View File

@ -2,10 +2,10 @@ import fs from "fs";
import path from "path"; import path from "path";
import process from "process"; import process from "process";
if (!process.env.CI) { // if (!process.env.CI) {
console.log("Not running in CI, skipping. Please do not run this script manually!"); // console.log("Not running in CI, skipping. Please do not run this script manually!");
process.exit(0); // process.exit(0);
} // }
const GITHUB_RUN_ID = process.env.GITHUB_RUN_ID; const GITHUB_RUN_ID = process.env.GITHUB_RUN_ID;
const GITHUB_RUN_ATTEMPT = process.env.GITHUB_RUN_ATTEMPT; const GITHUB_RUN_ATTEMPT = process.env.GITHUB_RUN_ATTEMPT;