Changes to point to CTFAM instance
This commit is contained in:
parent
6907a33dc7
commit
ddb0996cf0
23
README.md
23
README.md
|
|
@ -1,13 +1,13 @@
|
|||
<div align="center">
|
||||
<h1>
|
||||
Stoat for Desktop
|
||||
Stoat for Desktop (CTFAM)
|
||||
|
||||
[](https://github.com/stoatchat/for-desktop/stargazers)
|
||||
[](https://github.com/stoatchat/for-desktop/network/members)
|
||||
[](https://github.com/stoatchat/for-desktop/pulls)
|
||||
[](https://github.com/stoatchat/for-desktop/issues)
|
||||
[](https://github.com/stoatchat/for-desktop/graphs/contributors)
|
||||
[](https://github.com/stoatchat/for-desktop/blob/main/LICENSE)
|
||||
[](https://github.com/mattmckenzy/for-desktop/stargazers)
|
||||
[](https://github.com/mattmckenzy/for-desktop/network/members)
|
||||
[](https://github.com/mattmckenzy/for-desktop/pulls)
|
||||
[](https://github.com/mattmckenzy/for-desktop/issues)
|
||||
[](https://github.com/mattmckenzy/for-desktop/graphs/contributors)
|
||||
[](https://github.com/mattmckenzy/for-desktop/blob/main/LICENSE)
|
||||
</h1>
|
||||
Application for Windows, macOS, and Linux.
|
||||
</div>
|
||||
|
|
@ -29,8 +29,8 @@ Then proceed to setup:
|
|||
|
||||
```bash
|
||||
# clone the repository
|
||||
git clone --recursive https://github.com/stoatchat/for-desktop stoat-for-desktop
|
||||
cd stoat-for-desktop
|
||||
git clone --recursive https://github.com/mattmckenzy/for-desktop stoat-for-desktop-ctfam
|
||||
cd stoat-for-desktop-ctfam
|
||||
|
||||
# install all packages
|
||||
pnpm i --frozen-lockfile
|
||||
|
|
@ -74,3 +74,8 @@ git -c submodule."assets".update=checkout submodule update --init assets
|
|||
```
|
||||
|
||||
Currently, this is required to build, any forks are expected to provide their own assets.
|
||||
|
||||
|
||||
### Changes for original source (stoatchat)
|
||||
|
||||
The only changes made are those to point to my instance of stoatchat on ctfam.ca
|
||||
|
|
|
|||
2
assets
2
assets
|
|
@ -1 +1 @@
|
|||
Subproject commit 4c6419a274ec547fdf278ef0c98e837452769d36
|
||||
Subproject commit f106946659af67ad4f008588ac51570029b2fd47
|
||||
|
|
@ -13,9 +13,9 @@ import { FuseV1Options, FuseVersion } from "@electron/fuses";
|
|||
// import { globSync } from "node:fs";
|
||||
|
||||
const STRINGS = {
|
||||
author: "Revolt Platforms LTD",
|
||||
name: "Stoat",
|
||||
execName: "stoat-desktop",
|
||||
author: "stoatchat, mattmckenzy",
|
||||
name: "Stoat (CTFAM)",
|
||||
execName: "stoat-desktop-ctfam",
|
||||
description: "Open source user-first chat platform.",
|
||||
};
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ const makers: ForgeConfig["makers"] = [
|
|||
name: STRINGS.name,
|
||||
authors: STRINGS.author,
|
||||
// todo: hoist this
|
||||
iconUrl: `https://stoat.chat/app/assets/icon-DUSNE-Pb.ico`,
|
||||
iconUrl: `https://stoat.ctfam.ca/assets/icon-Dt-nxoOi.ico`,
|
||||
// todo: loadingGif
|
||||
setupIcon: `${ASSET_DIR}/icon.ico`,
|
||||
description: STRINGS.description,
|
||||
|
|
@ -54,7 +54,7 @@ if (!process.env.PLATFORM) {
|
|||
// this is just for testing purposes
|
||||
new MakerFlatpak({
|
||||
options: {
|
||||
id: "chat.stoat.stoat-desktop",
|
||||
id: "chat.stoat.stoat-desktop-ctfam",
|
||||
description: STRINGS.description,
|
||||
productName: STRINGS.name,
|
||||
productDescription: STRINGS.description,
|
||||
|
|
@ -169,7 +169,7 @@ const config: ForgeConfig = {
|
|||
publishers: [
|
||||
new PublisherGithub({
|
||||
repository: {
|
||||
owner: "stoatchat",
|
||||
owner: "mattmckenzy",
|
||||
name: "for-desktop",
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"name": "stoat-desktop",
|
||||
"productName": "stoat-desktop",
|
||||
"name": "stoat-desktop-ctfam",
|
||||
"productName": "stoat-desktop-ctfam",
|
||||
"version": "1.1.11",
|
||||
"main": ".vite/build/main.js",
|
||||
"repository": "stoatchat/desktop",
|
||||
"repository": "mattmckenzy/for-desktop",
|
||||
"scripts": {
|
||||
"start": "electron-forge start",
|
||||
"package": "electron-forge package",
|
||||
"make": "electron-forge make",
|
||||
"publish": "electron-forge publish",
|
||||
"lint": "eslint --ext .ts,.tsx .",
|
||||
"install:flatpak": "flatpak --user install out/make/flatpak/x86_64/chat.stoat.stoat-desktop_stable_x86_64.flatpak",
|
||||
"run:flatpak": "flatpak run --socket=session-bus chat.stoat.stoat-desktop",
|
||||
"install:flatpak": "flatpak --user install out/make/flatpak/x86_64/chat.stoat.stoat-desktop-ctfam_stable_x86_64.flatpak",
|
||||
"run:flatpak": "flatpak run --socket=session-bus chat.stoat.stoat-desktop-ctfam",
|
||||
"run:nix": "/usr/bin/env electron-nix ."
|
||||
},
|
||||
"keywords": [],
|
||||
|
|
@ -52,8 +52,9 @@
|
|||
"discord-rpc": "^4.0.1",
|
||||
"electron-squirrel-startup": "^1.0.1",
|
||||
"electron-store": "^10.1.0",
|
||||
"node-gyp": "^12.2.0",
|
||||
"update-electron-app": "^3.1.1",
|
||||
"utf-8-validate": "^6.0.5"
|
||||
},
|
||||
"packageManager": "pnpm@10.18.1+sha512.77a884a165cbba2d8d1c19e3b4880eee6d2fcabd0d879121e282196b80042351d5eb3ca0935fa599da1dc51265cc68816ad2bddd2a2de5ea9fdf92adbec7cd34"
|
||||
}
|
||||
"packageManager": "pnpm@10.29.3"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
nodeLinker: hoisted
|
||||
|
||||
onlyBuiltDependencies:
|
||||
- bufferutil
|
||||
- electron
|
||||
- electron-winstaller
|
||||
- esbuild
|
||||
- register-scheme
|
||||
- utf-8-validate
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ if (acquiredLock) {
|
|||
|
||||
// Windows specific fix for notifications
|
||||
if (process.platform === "win32") {
|
||||
app.setAppUserModelId("chat.stoat.notifications");
|
||||
app.setAppUserModelId("chat.stoat.ctfam.notifications");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ export async function setBadgeCount(count: number) {
|
|||
signature: "sa{sv}",
|
||||
body: [
|
||||
process.env.container === "1"
|
||||
? "application://chat.stoat.stoat-desktop.desktop" // flatpak handling
|
||||
: "application://stoat-desktop.desktop",
|
||||
? "application://chat.stoat.stoat-desktop-ctfam.desktop" // flatpak handling
|
||||
: "application://stoat-desktop-ctfam.desktop",
|
||||
[
|
||||
["count", ["x", Math.min(count, 0)]],
|
||||
["count-visible", ["b", count !== 0]],
|
||||
|
|
|
|||
|
|
@ -13,15 +13,15 @@ export async function initDiscordRpc() {
|
|||
|
||||
rpc.on("ready", () =>
|
||||
rpc.setActivity({
|
||||
state: "stoat.chat",
|
||||
state: "stoat.ctfam.ca",
|
||||
details: "Chatting with others",
|
||||
largeImageKey: "qr",
|
||||
// largeImageText: "Communication is critical – use Revolt.",
|
||||
largeImageText: "",
|
||||
largeImageText: "Communication is critical – use Stoat (CTFAM)",
|
||||
buttons: [
|
||||
{
|
||||
label: "Join Stoat",
|
||||
url: "https://stoat.chat/",
|
||||
label: "Join Stoat (CTFAM)",
|
||||
url: "https://stoat.ctfam.ca/",
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export function initTray() {
|
|||
const trayIcon = createTrayIcon();
|
||||
tray = new Tray(trayIcon);
|
||||
updateTrayMenu();
|
||||
tray.setToolTip("Stoat for Desktop");
|
||||
tray.setToolTip("Stoat for Desktop (CTFAM)");
|
||||
tray.setImage(trayIcon);
|
||||
tray.on("click", () => {
|
||||
mainWindow.show();
|
||||
|
|
@ -36,7 +36,7 @@ export function initTray() {
|
|||
export function updateTrayMenu() {
|
||||
tray.setContextMenu(
|
||||
Menu.buildFromTemplate([
|
||||
{ label: "Stoat for Desktop", type: "normal", enabled: false },
|
||||
{ label: "Stoat for Desktop (CTFAM)", type: "normal", enabled: false },
|
||||
{
|
||||
label: "Version",
|
||||
type: "submenu",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export let mainWindow: BrowserWindow;
|
|||
export const BUILD_URL = new URL(
|
||||
app.commandLine.hasSwitch("force-server")
|
||||
? app.commandLine.getSwitchValue("force-server")
|
||||
: /*MAIN_WINDOW_VITE_DEV_SERVER_URL ??*/ "https://beta.revolt.chat",
|
||||
: /*MAIN_WINDOW_VITE_DEV_SERVER_URL ??*/ "https://stoat.ctfam.ca",
|
||||
);
|
||||
|
||||
// internal window state
|
||||
|
|
|
|||
Loading…
Reference in New Issue