Compare commits

...

3 Commits

Author SHA1 Message Date
9ecabfb778 fixing sum stuff ahahah 2026-03-29 21:43:21 +03:00
2d60399989 fix sum studf 2026-03-29 20:50:02 +03:00
c6d8b61a00 Fix sum stuff 2026-03-29 20:46:48 +03:00
3 changed files with 57 additions and 9 deletions

48
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,48 @@
name: Build & Release
on:
push:
tags:
- 'v*'
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- run: npm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: ${{ github.ref_name }}
releaseName: RLidentity ${{ github.ref_name }}
releaseBody: ${{ github.ref_name }}
releaseDraft: false

View File

@ -32,7 +32,7 @@
"endpoints": [ "endpoints": [
"https://api.rlidentity.me/version" "https://api.rlidentity.me/version"
], ],
"pubkey": "DWY+YmX5uY2E3N0N3Q0N3Q0N3Q0N3Q0N3Q0N3Q0N3Q0N3Q==" "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEY5QkIxRTlEOEVENDRCNDcKUldSSFM5U09uUjY3K1VzZUg1ek52bnNuTmZDckhsN3k3WHlEMXhMTUFYSC9HUnlxL1ZYekhFU28K"
} }
}, },
"bundle": { "bundle": {

View File

@ -26,15 +26,15 @@ interface KeyValidationResponse {
} }
const LS_KEYS = { const LS_KEYS = {
spoofed: "neonGlass.spoofedUsername", spoofed: "rlidentity.spoofedUsername",
apiKey: "neonGlass.apiKey", apiKey: "rlidentity.apiKey",
minimizeToTray: "neonGlass.minimizeToTray", minimizeToTray: "rlidentity.minimizeToTray",
platform: "neonGlass.platform", platform: "rlidentity.platform",
autoInject: "neonGlass.autoInject", autoInject: "rlidentity.autoInject",
} as const; } as const;
const GITHUB_URL = "https://github.com/RLidentity"; const GITHUB_URL = "https://git.rlidentity.me/bits/rlidentity";
const FAQ_URL = "https://rlidentity.me/faq"; const FAQ_URL = "https://rlidentity.me/#faq";
function isTauriRuntime() { function isTauriRuntime() {
return typeof window !== "undefined" && typeof (window as any).__TAURI_INTERNALS__ !== "undefined"; return typeof window !== "undefined" && typeof (window as any).__TAURI_INTERNALS__ !== "undefined";
@ -200,7 +200,7 @@ export default function App() {
setStatus("validating key..."); setStatus("validating key...");
setIsRevoked(false); setIsRevoked(false);
try { try {
const hwid = await tryInvoke<string>("get_hwid") || "UNKNOWN"; const hwid = await tryInvoke<string>("get_hwid") || "UNKNOWN-HWID";
const res = await tryInvoke<KeyValidationResponse>("validate_key", { key: keyToTry.trim(), hwid }); const res = await tryInvoke<KeyValidationResponse>("validate_key", { key: keyToTry.trim(), hwid });
if (res && res.status === "valid") { if (res && res.status === "valid") {