mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Compare commits
2 commits
8c3abc8cf6
...
d18504bc2f
Author | SHA1 | Date | |
---|---|---|---|
|
d18504bc2f | ||
|
6e12b1baa2 |
2 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ArmCord",
|
"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.",
|
"description": "ArmCord is a Discord client made for ARM Linux that allows you to customize your experience.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -44,7 +44,11 @@
|
||||||
"appId": "com.smartfridge.armcord",
|
"appId": "com.smartfridge.armcord",
|
||||||
"productName": "ArmCord",
|
"productName": "ArmCord",
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "Network"
|
"category": "Network",
|
||||||
|
"extraResources": ["./mods/cumcord/*"]
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"extraResources": ["./mods/cumcord/*"]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"category": "Network",
|
"category": "Network",
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
const { contextBridge, remote, desktopCapturer } = require("electron");
|
const { contextBridge, remote, desktopCapturer } = require("electron");
|
||||||
const currentWindow = remote.getCurrentWindow();
|
const currentWindow = remote.getCurrentWindow();
|
||||||
|
const version = require("../package.json").version;
|
||||||
contextBridge.exposeInMainWorld("electron", {
|
contextBridge.exposeInMainWorld("electron", {
|
||||||
window: {
|
window: {
|
||||||
show: () => currentWindow.show(),
|
show: () => currentWindow.show(),
|
||||||
hide: () => currentWindow.hide(),
|
hide: () => currentWindow.hide(),
|
||||||
minimize: () => currentWindow.minimize(),
|
minimize: () => currentWindow.minimize(),
|
||||||
maximize: () => currentWindow.maximize(),
|
maximize: () => currentWindow.maximize(),
|
||||||
|
on : () => currentWindow.on(),
|
||||||
},
|
},
|
||||||
version: process.versions.electron,
|
electron: process.versions.electron,
|
||||||
|
version: version,
|
||||||
desktopCapturer: desktopCapturer,
|
desktopCapturer: desktopCapturer,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue