mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Update Readme, New ContextMenu stuff
This commit is contained in:
		
							parent
							
								
									2ef4441d40
								
							
						
					
					
						commit
						87fc19248a
					
				
					 4 changed files with 116 additions and 3 deletions
				
			
		|  | @ -3,9 +3,11 @@ Armcord is a custom Discord client for ARM Linux. It's goal is to bring a custom | |||
| # To run this you need: | ||||
| nodejs, npm | ||||
| # How to run/install it? | ||||
| Check releases tab for precompiled deb, rpm, tar.gz versions (arm64 only). | ||||
| Alternative:   | ||||
| 1.Run `npm install`    | ||||
| 2.Run `npm start`   | ||||
| Alternative: Download pre-compiled version from releases tab. | ||||
| 
 | ||||
| 
 | ||||
| # FAQ | ||||
| ## 1.Will I get banned from using it?    | ||||
|  | @ -14,4 +16,7 @@ Alternative: Download pre-compiled version from releases tab. | |||
| ## 2.How does this work?    | ||||
| 
 | ||||
|  -We are using official web app and adding GooseMod to it with some other tweaks.    | ||||
| ## 3.Can I use this on other architectures or operating systems? | ||||
| 
 | ||||
|  -Yes! ArmCord should work normally under Windows, Mac OS, Linux as long as it has NodeJS, npm and Electron support.    | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										1
									
								
								main.js
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								main.js
									
										
									
									
									
								
							|  | @ -3,6 +3,7 @@ const { app, BrowserWindow, session } = require('electron') | |||
| const path = require('path') | ||||
| require("v8-compile-cache"); | ||||
| let mainWindow | ||||
| require("./menu.js") | ||||
| 
 | ||||
| function createWindow() { | ||||
|   mainWindow = new BrowserWindow({ | ||||
|  |  | |||
							
								
								
									
										107
									
								
								menu.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								menu.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,107 @@ | |||
| const { app, Menu } = require("electron"); | ||||
| 
 | ||||
| const isMac = process.platform === "darwin"; | ||||
| 
 | ||||
| const template = [ | ||||
|   // { role: 'appMenu' }
 | ||||
|   ...(isMac | ||||
|     ? [ | ||||
|         { | ||||
|           label: app.name, | ||||
|           submenu: [ | ||||
|             { role: "about" }, | ||||
|             { type: "separator" }, | ||||
|             { role: "services" }, | ||||
|             { type: "separator" }, | ||||
|             { role: "hide" }, | ||||
|             { role: "hideothers" }, | ||||
|             { role: "unhide" }, | ||||
|             { type: "separator" }, | ||||
|             { role: "quit" }, | ||||
|           ], | ||||
|         }, | ||||
|       ] | ||||
|     : []), | ||||
|   // { role: 'fileMenu' }
 | ||||
|   { | ||||
|     label: "File", | ||||
|     submenu: [isMac ? { role: "close" } : { role: "quit" }], | ||||
|   }, | ||||
|   // { role: 'editMenu' }
 | ||||
|   { | ||||
|     label: "Edit", | ||||
|     submenu: [ | ||||
|       { role: "undo" }, | ||||
|       { role: "redo" }, | ||||
|       { type: "separator" }, | ||||
|       { role: "cut" }, | ||||
|       { role: "copy" }, | ||||
|       { role: "paste" }, | ||||
|       ...(isMac | ||||
|         ? [ | ||||
|             { role: "pasteAndMatchStyle" }, | ||||
|             { role: "delete" }, | ||||
|             { role: "selectAll" }, | ||||
|             { type: "separator" }, | ||||
|             { | ||||
|               label: "Speech", | ||||
|               submenu: [{ role: "startSpeaking" }, { role: "stopSpeaking" }], | ||||
|             }, | ||||
|           ] | ||||
|         : [{ role: "delete" }, { type: "separator" }, { role: "selectAll" }]), | ||||
|     ], | ||||
|   }, | ||||
|   // { role: 'viewMenu' }
 | ||||
|   { | ||||
|     label: "View", | ||||
|     submenu: [ | ||||
|       { role: "reload" }, | ||||
|       { role: "forceReload" }, | ||||
|       { role: "toggleDevTools" }, | ||||
|       { type: "separator" }, | ||||
|       { role: "resetZoom" }, | ||||
|       { role: "zoomIn" }, | ||||
|       { role: "zoomOut" }, | ||||
|       { type: "separator" }, | ||||
|       { role: "togglefullscreen" }, | ||||
|     ], | ||||
|   }, | ||||
|   // { role: 'windowMenu' }
 | ||||
|   { | ||||
|     label: "Window", | ||||
|     submenu: [ | ||||
|       { role: "minimize" }, | ||||
|       { role: "zoom" }, | ||||
|       ...(isMac | ||||
|         ? [ | ||||
|             { type: "separator" }, | ||||
|             { role: "front" }, | ||||
|             { type: "separator" }, | ||||
|             { role: "window" }, | ||||
|           ] | ||||
|         : [{ role: "close" }]), | ||||
|     ], | ||||
|   }, | ||||
|   { | ||||
|     role: "help", | ||||
|     submenu: [ | ||||
|       { | ||||
|         label: "Learn More", | ||||
|         click: async () => { | ||||
|           const { shell } = require("electron"); | ||||
|           await shell.openExternal("https://github.com/smartfrigde/armcord"); | ||||
|         }, | ||||
|       }, | ||||
|       { | ||||
|         label: "Support Server", | ||||
|         click: async () => { | ||||
|           const { shell } = require("electron"); | ||||
|           await shell.openExternal("https://discord.gg/F25bc4RYDt"); | ||||
|         }, | ||||
|       }, | ||||
|     ], | ||||
|   }, | ||||
| ]; | ||||
| 
 | ||||
| const menu = Menu.buildFromTemplate(template); | ||||
| Menu.setApplicationMenu(menu); | ||||
|  | @ -3,8 +3,8 @@ const customTitlebar = require('custom-electron-titlebar') | |||
| window.addEventListener('DOMContentLoaded', () => { | ||||
|   new customTitlebar.Titlebar({ | ||||
|     backgroundColor: customTitlebar.Color.fromHex("#2C2F33"), | ||||
|     titleHorizontalAlignment | ||||
|   }); | ||||
| 
 | ||||
| 
 | ||||
| }) | ||||
| 
 | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue