Compare commits

...

2 commits

Author SHA1 Message Date
smartfridge
d18504bc2f v2.6.1 2021-11-01 17:57:38 +01:00
smartfridge
6e12b1baa2 Fix cumcord bug 2021-11-01 17:57:03 +01:00
2 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ArmCord",
"version": "2.6.0",
"version": "2.6.1",
"description": "ArmCord is a Discord client made for ARM Linux that allows you to customize your experience.",
"main": "main.js",
"scripts": {
@ -44,7 +44,11 @@
"appId": "com.smartfridge.armcord",
"productName": "ArmCord",
"mac": {
"category": "Network"
"category": "Network",
"extraResources": ["./mods/cumcord/*"]
},
"win": {
"extraResources": ["./mods/cumcord/*"]
},
"linux": {
"category": "Network",

View file

@ -1,13 +1,16 @@
const { contextBridge, remote, desktopCapturer } = require("electron");
const currentWindow = remote.getCurrentWindow();
const version = require("../package.json").version;
contextBridge.exposeInMainWorld("electron", {
window: {
show: () => currentWindow.show(),
hide: () => currentWindow.hide(),
minimize: () => currentWindow.minimize(),
maximize: () => currentWindow.maximize(),
on : () => currentWindow.on(),
},
version: process.versions.electron,
electron: process.versions.electron,
version: version,
desktopCapturer: desktopCapturer,
});