windows95/src/main/about-panel.ts

29 lines
712 B
TypeScript
Raw Normal View History

2019-08-21 09:48:49 +02:00
import { AboutPanelOptionsOptions, app } from "electron";
/**
* Sets Fiddle's About panel options on Linux and macOS
*
* @returns
*/
export function setupAboutPanel(): void {
if (process.platform === "win32") return;
const options: AboutPanelOptionsOptions = {
applicationName: "windows95",
applicationVersion: app.getVersion(),
version: process.versions.electron,
2020-08-02 22:11:20 +02:00
copyright: "Felix Rieseberg",
2019-08-21 09:48:49 +02:00
};
switch (process.platform) {
case "linux":
options.website = "https://github.com/felixrieseberg/windows95";
case "darwin":
options.credits = "https://github.com/felixrieseberg/windows95";
default:
// fallthrough
}
app.setAboutPanelOptions(options);
}