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">
|
<div align="center">
|
||||||
<h1>
|
<h1>
|
||||||
Stoat for Desktop
|
Stoat for Desktop (CTFAM)
|
||||||
|
|
||||||
[](https://github.com/stoatchat/for-desktop/stargazers)
|
[](https://github.com/mattmckenzy/for-desktop/stargazers)
|
||||||
[](https://github.com/stoatchat/for-desktop/network/members)
|
[](https://github.com/mattmckenzy/for-desktop/network/members)
|
||||||
[](https://github.com/stoatchat/for-desktop/pulls)
|
[](https://github.com/mattmckenzy/for-desktop/pulls)
|
||||||
[](https://github.com/stoatchat/for-desktop/issues)
|
[](https://github.com/mattmckenzy/for-desktop/issues)
|
||||||
[](https://github.com/stoatchat/for-desktop/graphs/contributors)
|
[](https://github.com/mattmckenzy/for-desktop/graphs/contributors)
|
||||||
[](https://github.com/stoatchat/for-desktop/blob/main/LICENSE)
|
[](https://github.com/mattmckenzy/for-desktop/blob/main/LICENSE)
|
||||||
</h1>
|
</h1>
|
||||||
Application for Windows, macOS, and Linux.
|
Application for Windows, macOS, and Linux.
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -29,8 +29,8 @@ Then proceed to setup:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# clone the repository
|
# clone the repository
|
||||||
git clone --recursive https://github.com/stoatchat/for-desktop stoat-for-desktop
|
git clone --recursive https://github.com/mattmckenzy/for-desktop stoat-for-desktop-ctfam
|
||||||
cd stoat-for-desktop
|
cd stoat-for-desktop-ctfam
|
||||||
|
|
||||||
# install all packages
|
# install all packages
|
||||||
pnpm i --frozen-lockfile
|
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.
|
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";
|
// import { globSync } from "node:fs";
|
||||||
|
|
||||||
const STRINGS = {
|
const STRINGS = {
|
||||||
author: "Revolt Platforms LTD",
|
author: "stoatchat, mattmckenzy",
|
||||||
name: "Stoat",
|
name: "Stoat (CTFAM)",
|
||||||
execName: "stoat-desktop",
|
execName: "stoat-desktop-ctfam",
|
||||||
description: "Open source user-first chat platform.",
|
description: "Open source user-first chat platform.",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ const makers: ForgeConfig["makers"] = [
|
||||||
name: STRINGS.name,
|
name: STRINGS.name,
|
||||||
authors: STRINGS.author,
|
authors: STRINGS.author,
|
||||||
// todo: hoist this
|
// 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
|
// todo: loadingGif
|
||||||
setupIcon: `${ASSET_DIR}/icon.ico`,
|
setupIcon: `${ASSET_DIR}/icon.ico`,
|
||||||
description: STRINGS.description,
|
description: STRINGS.description,
|
||||||
|
|
@ -54,7 +54,7 @@ if (!process.env.PLATFORM) {
|
||||||
// this is just for testing purposes
|
// this is just for testing purposes
|
||||||
new MakerFlatpak({
|
new MakerFlatpak({
|
||||||
options: {
|
options: {
|
||||||
id: "chat.stoat.stoat-desktop",
|
id: "chat.stoat.stoat-desktop-ctfam",
|
||||||
description: STRINGS.description,
|
description: STRINGS.description,
|
||||||
productName: STRINGS.name,
|
productName: STRINGS.name,
|
||||||
productDescription: STRINGS.description,
|
productDescription: STRINGS.description,
|
||||||
|
|
@ -169,7 +169,7 @@ const config: ForgeConfig = {
|
||||||
publishers: [
|
publishers: [
|
||||||
new PublisherGithub({
|
new PublisherGithub({
|
||||||
repository: {
|
repository: {
|
||||||
owner: "stoatchat",
|
owner: "mattmckenzy",
|
||||||
name: "for-desktop",
|
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",
|
"name": "stoat-desktop-ctfam",
|
||||||
"productName": "stoat-desktop",
|
"productName": "stoat-desktop-ctfam",
|
||||||
"version": "1.1.11",
|
"version": "1.1.11",
|
||||||
"main": ".vite/build/main.js",
|
"main": ".vite/build/main.js",
|
||||||
"repository": "stoatchat/desktop",
|
"repository": "mattmckenzy/for-desktop",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron-forge start",
|
"start": "electron-forge start",
|
||||||
"package": "electron-forge package",
|
"package": "electron-forge package",
|
||||||
"make": "electron-forge make",
|
"make": "electron-forge make",
|
||||||
"publish": "electron-forge publish",
|
"publish": "electron-forge publish",
|
||||||
"lint": "eslint --ext .ts,.tsx .",
|
"lint": "eslint --ext .ts,.tsx .",
|
||||||
"install:flatpak": "flatpak --user install out/make/flatpak/x86_64/chat.stoat.stoat-desktop_stable_x86_64.flatpak",
|
"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",
|
"run:flatpak": "flatpak run --socket=session-bus chat.stoat.stoat-desktop-ctfam",
|
||||||
"run:nix": "/usr/bin/env electron-nix ."
|
"run:nix": "/usr/bin/env electron-nix ."
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|
@ -52,8 +52,9 @@
|
||||||
"discord-rpc": "^4.0.1",
|
"discord-rpc": "^4.0.1",
|
||||||
"electron-squirrel-startup": "^1.0.1",
|
"electron-squirrel-startup": "^1.0.1",
|
||||||
"electron-store": "^10.1.0",
|
"electron-store": "^10.1.0",
|
||||||
|
"node-gyp": "^12.2.0",
|
||||||
"update-electron-app": "^3.1.1",
|
"update-electron-app": "^3.1.1",
|
||||||
"utf-8-validate": "^6.0.5"
|
"utf-8-validate": "^6.0.5"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.18.1+sha512.77a884a165cbba2d8d1c19e3b4880eee6d2fcabd0d879121e282196b80042351d5eb3ca0935fa599da1dc51265cc68816ad2bddd2a2de5ea9fdf92adbec7cd34"
|
"packageManager": "pnpm@10.29.3"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
nodeLinker: hoisted
|
nodeLinker: hoisted
|
||||||
|
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
|
- bufferutil
|
||||||
- electron
|
- electron
|
||||||
- electron-winstaller
|
- electron-winstaller
|
||||||
- esbuild
|
- esbuild
|
||||||
- register-scheme
|
- register-scheme
|
||||||
|
- utf-8-validate
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ if (acquiredLock) {
|
||||||
|
|
||||||
// Windows specific fix for notifications
|
// Windows specific fix for notifications
|
||||||
if (process.platform === "win32") {
|
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}",
|
signature: "sa{sv}",
|
||||||
body: [
|
body: [
|
||||||
process.env.container === "1"
|
process.env.container === "1"
|
||||||
? "application://chat.stoat.stoat-desktop.desktop" // flatpak handling
|
? "application://chat.stoat.stoat-desktop-ctfam.desktop" // flatpak handling
|
||||||
: "application://stoat-desktop.desktop",
|
: "application://stoat-desktop-ctfam.desktop",
|
||||||
[
|
[
|
||||||
["count", ["x", Math.min(count, 0)]],
|
["count", ["x", Math.min(count, 0)]],
|
||||||
["count-visible", ["b", count !== 0]],
|
["count-visible", ["b", count !== 0]],
|
||||||
|
|
|
||||||
|
|
@ -13,15 +13,15 @@ export async function initDiscordRpc() {
|
||||||
|
|
||||||
rpc.on("ready", () =>
|
rpc.on("ready", () =>
|
||||||
rpc.setActivity({
|
rpc.setActivity({
|
||||||
state: "stoat.chat",
|
state: "stoat.ctfam.ca",
|
||||||
details: "Chatting with others",
|
details: "Chatting with others",
|
||||||
largeImageKey: "qr",
|
largeImageKey: "qr",
|
||||||
// largeImageText: "Communication is critical – use Revolt.",
|
// largeImageText: "Communication is critical – use Revolt.",
|
||||||
largeImageText: "",
|
largeImageText: "Communication is critical – use Stoat (CTFAM)",
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
label: "Join Stoat",
|
label: "Join Stoat (CTFAM)",
|
||||||
url: "https://stoat.chat/",
|
url: "https://stoat.ctfam.ca/",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ export function initTray() {
|
||||||
const trayIcon = createTrayIcon();
|
const trayIcon = createTrayIcon();
|
||||||
tray = new Tray(trayIcon);
|
tray = new Tray(trayIcon);
|
||||||
updateTrayMenu();
|
updateTrayMenu();
|
||||||
tray.setToolTip("Stoat for Desktop");
|
tray.setToolTip("Stoat for Desktop (CTFAM)");
|
||||||
tray.setImage(trayIcon);
|
tray.setImage(trayIcon);
|
||||||
tray.on("click", () => {
|
tray.on("click", () => {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
|
|
@ -36,7 +36,7 @@ export function initTray() {
|
||||||
export function updateTrayMenu() {
|
export function updateTrayMenu() {
|
||||||
tray.setContextMenu(
|
tray.setContextMenu(
|
||||||
Menu.buildFromTemplate([
|
Menu.buildFromTemplate([
|
||||||
{ label: "Stoat for Desktop", type: "normal", enabled: false },
|
{ label: "Stoat for Desktop (CTFAM)", type: "normal", enabled: false },
|
||||||
{
|
{
|
||||||
label: "Version",
|
label: "Version",
|
||||||
type: "submenu",
|
type: "submenu",
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export let mainWindow: BrowserWindow;
|
||||||
export const BUILD_URL = new URL(
|
export const BUILD_URL = new URL(
|
||||||
app.commandLine.hasSwitch("force-server")
|
app.commandLine.hasSwitch("force-server")
|
||||||
? app.commandLine.getSwitchValue("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
|
// internal window state
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue