build: release v1.18.8 - Fix settings export tokens and installer crash
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<div align="center">
|
||||
<img src="https://raw.githubusercontent.com/nightcordoff/nightcord/main/nightcord.ico" width="96" height="96" alt="Nightcord Logo">
|
||||
<img src="https://raw.githubusercontent.com/nightcordfr/nightcord/main/nightcord.ico" width="96" height="96" alt="Nightcord Logo">
|
||||
|
||||
# Nightcord
|
||||
|
||||
**A custom Discord client built for people who actually care about how Discord runs.**
|
||||
|
||||
[](https://discord.gg/nightcord)
|
||||
[](./LICENSE)
|
||||
[](https://github.com/nightcordoff/nightcord)
|
||||
[](./LICENSE)
|
||||
[](https://github.com/nightcordfr/nightcord)
|
||||
[](https://nightcord.online)
|
||||
|
||||
---
|
||||
@@ -45,7 +45,7 @@ If you want to dig into the code or build it yourself:
|
||||
- [pnpm](https://pnpm.io/installation) — `npm install -g pnpm`
|
||||
|
||||
```bash
|
||||
git clone https://github.com/nightcordoff/nightcord.git
|
||||
git clone https://github.com/nightcordfr/nightcord.git
|
||||
cd nightcord
|
||||
pnpm install
|
||||
pnpm build
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace NightcordInstaller
|
||||
private string _distDir;
|
||||
private string _exeDir;
|
||||
|
||||
const string GITHUB_REPO = "nightcordoff/nightcord";
|
||||
const string GITHUB_REPO = "nightcordfr/nightcord";
|
||||
const string DIST_ZIP = "nightcord-dist.zip";
|
||||
|
||||
public NightcordBackend(LauncherForm form, WebView2 webView)
|
||||
|
||||
@@ -657,7 +657,7 @@
|
||||
</svg>
|
||||
<span>Official Website</span>
|
||||
</button>
|
||||
<button class="btn-setting-link btn-github" onclick="window.nightcord.openUrl('https://github.com/nightcordoff/nightcord')">
|
||||
<button class="btn-setting-link btn-github" onclick="window.nightcord.openUrl('https://github.com/nightcordfr/nightcord')">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" class="btn-link-icon">
|
||||
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.11.82-.26.82-.577v-2.17c-3.338.726-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.757-1.333-1.757-1.09-.745.083-.73.083-.73 1.205.084 1.84 1.237 1.84 1.237 1.07 1.835 2.807 1.305 3.492.998.108-.775.42-1.305.763-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.467-2.38 1.235-3.22-.123-.303-.535-1.523.117-3.176 0 0 1.008-.322 3.3 1.23.957-.266 1.98-.398 3-.403 1.02.005 2.043.137 3 .403 2.29-1.552 3.297-1.23 3.297-1.23.653 1.653.24 2.873.118 3.176.77.84 1.233 1.91 1.233 3.22 0 4.61-2.803 5.625-5.475 5.92.43.37.823 1.102.823 2.222v3.293c0 .32.218.694.825.577C20.565 21.797 24 17.298 24 12c0-6.63-5.37-12-12-12z"/>
|
||||
</svg>
|
||||
@@ -907,7 +907,7 @@
|
||||
// Fetch latest version from GitHub and show in titlebar badge
|
||||
async function loadLatestVersion() {
|
||||
try {
|
||||
const res = await fetch('https://api.github.com/repos/nightcordoff/nightcord/releases/latest', {
|
||||
const res = await fetch('https://api.github.com/repos/nightcordfr/nightcord/releases/latest', {
|
||||
headers: { 'Accept': 'application/vnd.github.v3+json' }
|
||||
});
|
||||
if (!res.ok) return;
|
||||
|
||||
@@ -15,7 +15,7 @@ $ErrorActionPreference = "Stop"
|
||||
$ProgressPreference = "SilentlyContinue"
|
||||
|
||||
# ── Configuration ─────────────────────────────────────────────────────────────
|
||||
$NightcordRepo = "nightcordoff/nightcord"
|
||||
$NightcordRepo = "nightcordfr/nightcord"
|
||||
$EquilotlUrl = "https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli.exe"
|
||||
$InstallDir = Join-Path $env:LOCALAPPDATA "Nightcord"
|
||||
$DistDir = Join-Path $InstallDir "dist"
|
||||
|
||||
+3
-3
@@ -4,13 +4,13 @@
|
||||
"version": "1.18.7",
|
||||
"description": "Everything Discord doesn't build, we create",
|
||||
"main": "dist/js/main.js",
|
||||
"homepage": "https://github.com/nightcordoff/nightcord",
|
||||
"homepage": "https://github.com/nightcordfr/nightcord",
|
||||
"bugs": {
|
||||
"url": "https://github.com/nightcordoff/nightcord/issues"
|
||||
"url": "https://github.com/nightcordfr/nightcord/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nightcordoff/nightcord.git"
|
||||
"url": "git+https://github.com/nightcordfr/nightcord.git"
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Equicord",
|
||||
|
||||
+1
-41
@@ -1,4 +1,4 @@
|
||||
[
|
||||
[
|
||||
{
|
||||
"hasPatches": true,
|
||||
"hasCommands": false,
|
||||
@@ -7946,26 +7946,6 @@
|
||||
"filePath": "src/nightcordplugins/DMBomb",
|
||||
"dirName": "DMBomb"
|
||||
},
|
||||
{
|
||||
"hasPatches": false,
|
||||
"hasCommands": false,
|
||||
"enabledByDefault": true,
|
||||
"required": false,
|
||||
"isModified": false,
|
||||
"tags": [
|
||||
|
||||
],
|
||||
"name": "DoubleCall",
|
||||
"description": "Join two voice channels simultaneously with your own account.",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nightcord",
|
||||
"id": "0"
|
||||
}
|
||||
],
|
||||
"filePath": "src/nightcordplugins/doubleCall",
|
||||
"dirName": "doubleCall"
|
||||
},
|
||||
{
|
||||
"hasPatches": false,
|
||||
"hasCommands": false,
|
||||
@@ -8375,26 +8355,6 @@
|
||||
"filePath": "src/nightcordplugins/hideAttachments",
|
||||
"dirName": "hideAttachments"
|
||||
},
|
||||
{
|
||||
"hasPatches": false,
|
||||
"hasCommands": false,
|
||||
"enabledByDefault": true,
|
||||
"required": false,
|
||||
"isModified": false,
|
||||
"tags": [
|
||||
|
||||
],
|
||||
"name": "GhostClient",
|
||||
"description": "Discord ghost accounts — left-click to enable/disable, right-click to configure.",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nightcord",
|
||||
"id": "0"
|
||||
}
|
||||
],
|
||||
"filePath": "src/nightcordplugins/ghostClient",
|
||||
"dirName": "ghostClient"
|
||||
},
|
||||
{
|
||||
"hasPatches": true,
|
||||
"hasCommands": false,
|
||||
|
||||
+4
-4
@@ -148,9 +148,9 @@ for /f "usebackq" %%d in (`powershell -NoProfile -Command "Get-Date -Format 'yyy
|
||||
echo {
|
||||
echo "version": "%VERSION%",
|
||||
echo "releaseDate": "%ISO_DATE%",
|
||||
echo "installerUrl": "https://github.com/nightcordoff/nightcord/releases/latest/download/Nightcord-Installer.exe",
|
||||
echo "distUrl": "https://github.com/nightcordoff/nightcord/releases/latest/download/nightcord-dist.zip",
|
||||
echo "downloadUrl": "https://github.com/nightcordoff/nightcord/releases/latest/download/desktop.asar",
|
||||
echo "installerUrl": "https://github.com/nightcordfr/nightcord/releases/latest/download/Nightcord-Installer.exe",
|
||||
echo "distUrl": "https://github.com/nightcordfr/nightcord/releases/latest/download/nightcord-dist.zip",
|
||||
echo "downloadUrl": "https://github.com/nightcordfr/nightcord/releases/latest/download/desktop.asar",
|
||||
echo "changelog": "!NOTES!"
|
||||
echo }
|
||||
) > "%VERSION_JSON%"
|
||||
@@ -173,7 +173,7 @@ gh release create "v%VERSION%" ^
|
||||
"%DIST_ZIP%#nightcord-dist.zip" ^
|
||||
"%DESKTOP_ASAR%#desktop.asar" ^
|
||||
"%VERSION_JSON%#version.json" ^
|
||||
--repo nightcordoff/nightcord ^
|
||||
--repo nightcordfr/nightcord ^
|
||||
--title "Nightcord v%VERSION%" ^
|
||||
--notes "!NOTES!" ^
|
||||
--latest
|
||||
|
||||
@@ -68,7 +68,7 @@ async function ensureBinary() {
|
||||
|
||||
const res = await fetch(BASE_URL + filename, {
|
||||
headers: {
|
||||
"User-Agent": "Nightcord (https://github.com/nightcordoff/nightcord)"
|
||||
"User-Agent": "Nightcord (https://github.com/nightcordfr/nightcord)"
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ const KNOWN_PLUGINS_KEY = "EquicordChangelog_KnownPlugins";
|
||||
const KNOWN_SETTINGS_KEY = "EquicordChangelog_KnownSettings";
|
||||
const LAST_REPO_CHECK_KEY = "EquicordChangelog_LastRepoCheck";
|
||||
const GITHUB_COMPARE_ENDPOINT = "https://api.github.com/repos";
|
||||
const NIGHTCORD_RELEASES_REPO = "nightcordoff/nightcord";
|
||||
const NIGHTCORD_RELEASES_REPO = "nightcordfr/nightcord";
|
||||
const NIGHTCORD_REPO_URL = `https://github.com/${NIGHTCORD_RELEASES_REPO}`;
|
||||
|
||||
type KnownPluginSettingsMap = Map<string, Set<string>>;
|
||||
|
||||
@@ -22,7 +22,7 @@ import { Toasts } from "@webpack/common";
|
||||
// Version locale depuis package.json (injectée au build)
|
||||
declare const VERSION: string;
|
||||
|
||||
const REPO_URL = "https://github.com/nightcordoff/nightcord";
|
||||
const REPO_URL = "https://github.com/nightcordfr/nightcord";
|
||||
|
||||
function UpdaterTab() {
|
||||
const [checking, setChecking] = useState(false);
|
||||
|
||||
+2
-11
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2026 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
@@ -28,15 +28,6 @@ mkdirSync(USERPLUGINS_DIR, { recursive: true });
|
||||
|
||||
registerCspIpcHandlers();
|
||||
|
||||
import * as ghostNative from "../nightcordplugins/ghostClient/native";
|
||||
(async () => {
|
||||
try {
|
||||
await (ghostNative as any).init(null);
|
||||
} catch (e) {
|
||||
console.warn("[Nightcord] Ghost-server pre-start failed:", e);
|
||||
}
|
||||
})();
|
||||
|
||||
export function ensureSafePath(basePath: string, path: string) {
|
||||
const normalizedBasePath = normalize(basePath + "/");
|
||||
const newPath = join(basePath, path);
|
||||
@@ -898,7 +889,7 @@ ipcMain.handle(IpcEvents.RELAUNCH_APP, async () => {
|
||||
app.exit(0);
|
||||
});
|
||||
|
||||
const OFFICIAL_UPDATE_URL = "https://github.com/nightcordoff/nightcord/releases/latest/download/Nightcord-Installer.exe";
|
||||
const OFFICIAL_UPDATE_URL = "https://github.com/nightcordfr/nightcord/releases/latest/download/Nightcord-Installer.exe";
|
||||
|
||||
ipcMain.handle(IpcEvents.NIGHTCORD_DOWNLOAD_AND_RUN, async (_, url: string) => {
|
||||
if (url !== OFFICIAL_UPDATE_URL) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import { join } from "path";
|
||||
|
||||
import { serializeErrors } from "./common";
|
||||
|
||||
const RELEASES_REPO = "nightcordoff/nightcord";
|
||||
const RELEASES_REPO = "nightcordfr/nightcord";
|
||||
const API_BASE = `https://api.github.com/repos/${RELEASES_REPO}`;
|
||||
const REPO_URL = `https://github.com/${RELEASES_REPO}`;
|
||||
declare const VERSION: string;
|
||||
|
||||
@@ -71,7 +71,7 @@ export async function installExt(id: string) {
|
||||
|
||||
const buf = await fetchBuffer(url, {
|
||||
headers: {
|
||||
"User-Agent": `Electron ${process.versions.electron} ~ Nightcord (https://github.com/nightcordoff/nightcord)`
|
||||
"User-Agent": `Electron ${process.versions.electron} ~ Nightcord (https://github.com/nightcordfr/nightcord)`
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import { React, useEffect,useState } from "@webpack/common";
|
||||
|
||||
// ── Config ────────────────────────────────────────────────────────────────────
|
||||
const REMOTE_VERSION_URL =
|
||||
"https://api.github.com/repos/nightcordoff/nightcord/releases/latest";
|
||||
"https://api.github.com/repos/nightcordfr/nightcord/releases/latest";
|
||||
|
||||
// ── Version locale (injectée au build via define) ─────────────────────────────
|
||||
declare const VERSION: string;
|
||||
|
||||
Reference in New Issue
Block a user