Commit graph

40 commits

Author SHA1 Message Date
smartfrigde
6da51782ad fix: quit properly in tray 2024-06-15 11:41:35 +02:00
Ritiek Malhotra
d9d24d9473
Improve multi-instance behaviour (#604)
* Experiment with two windows

* Improve multi-instance behaviour

Previously, ArmCord would attempt to launch up a completely new
instance each time when multi-instances setting were enabled. This
doesn't work well as Electron doesn't support running multiple instances
of the same app pointing to the same user data directory
(which by default on GNU/Linux is `~/.config/ArmCord`). Doing so would
result in this error:
> Failed to open LevelDB database" "file currently in use"

It's possible to workaround this behaviour by passing in a parameter to
a different user data directory when launching subsequent instances of
armcord, like so:
```shell
$ armcord --user-data-directory=$HOME/.config/ArmCord-2
```

However, this method ends up taking disk storage in the multiples of the
number of armcord instances that are simultaneously running, which isn't
ideal.

Looking into this more, it looks like Electron can do multiple windows
fine with the same user data directory. I gave this a try and it seems
to be working nice. With this PR, running any subsequent instances of
armcord will open up a new window in the original armcord instance. This
should also help with better resource utilization when compared to
running multiple full blown instances of armcord.

* Fix lints
2024-06-15 10:20:44 +02:00
Aiden
10b7e638de
Updates and Linting (#578)
* Updates and Linting

* fix lint task

* [ImgBot] Optimize images

*Total -- 404.98kb -> 304.38kb (24.84%)

/assets/screenshot-1920x1080.png -- 205.00kb -> 123.21kb (39.9%)
/build/appx/Square150x150Logo.png -- 9.63kb -> 7.71kb (20%)
/assets/ac_icon.png -- 40.15kb -> 34.98kb (12.88%)
/assets/StoreLogo.png -- 40.15kb -> 34.98kb (12.88%)
/assets/Square150x150Logo.png -- 7.24kb -> 6.53kb (9.83%)
/assets/ac_icon_transparent.png -- 45.54kb -> 42.00kb (7.76%)
/assets/ac_plug_colored.png -- 17.98kb -> 16.72kb (7%)
/assets/ac_black_plug.png -- 8.49kb -> 8.06kb (5.06%)
/assets/ac_black_plug_hollow.png -- 10.30kb -> 9.95kb (3.4%)
/build/appx/Square44x44Logo.png -- 1.69kb -> 1.64kb (2.89%)
/assets/Square44x44Logo.png -- 1.90kb -> 1.85kb (2.83%)
/assets/Wide310x150Logo.png -- 4.21kb -> 4.17kb (0.97%)
/build/appx/Wide310x150Logo.png -- 4.21kb -> 4.17kb (0.97%)
/assets/ac_white_plug.png -- 8.49kb -> 8.42kb (0.83%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

* Asyncification!!!
Check `REVIEW` comments

* More async for `src/discord`

* update packages to latest minor version

* Void some promises

* Add some types - 93 problems left!

* make DeepScan Happy

* DeepScan part 2

* I am the Constant

* preload must be `.mts`

* Migrate electron context menu official package

* fix bad preload on setup window

* fix minor import oversights

* fix modloader

* Stop main window from continuing during setup

* update packages, slow dependabot

* Remove paste override, it seems to work without now

* IPC typing

* Package updates & a few more typings

* fix linting errors in screenshare

* use pnpm in actions

* fix dev releaser?

* update node build, fix dev one more time

* release action is broke

* Fix Release

* update actions

* actions are so finicky

* remove delete-tag-and-release

* add github token env

* Hopefully this fixes the release workflow

* [debug]

* this should actually fix it

* Fix typo in dev action

* put everything in a dir and then get it

* use a different releaser

* correct release file location

* action places it in a folder named x.zip, recurse into that and grab the actual files

* Cleanup actions a bit

* release is dependent on mac build

* remove mac build

* split linux arm and x86

* rely on linux arm

* remove deprecated action

* attempt to fix weird recursive zip

* fix env

* use pnpm in actions

fix dev releaser?

update node build, fix dev one more time

release action is broke

Fix Release

update actions

actions are so finicky

remove delete-tag-and-release

add github token env

Hopefully this fixes the release workflow

[debug]

this should actually fix it

Fix typo in dev action

put everything in a dir and then get it

use a different releaser

correct release file location

action places it in a folder named x.zip, recurse into that and grab the actual files

Cleanup actions a bit

release is dependent on mac build

remove mac build

split linux arm and x86

rely on linux arm

remove deprecated action

attempt to fix weird recursive zip

fix env

* don't globally install pnpm packages (I don't think the cache checks global)

* Type the armcord window

* Finalize typings

* fix deepscan issues

* fix screenshare preload

* fix app quitting

---------

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: smartfrigde <37928912+smartfrigde@users.noreply.github.com>
2024-06-14 14:57:34 +02:00
Aiden
36e5f95705
include file extensions on imports (#599)
* include file extensions on imports

* missed two
2024-06-01 11:56:19 +02:00
smartfrigde
0487507bc4 feat: rewrite to esm 2024-05-15 20:14:18 +02:00
smartfrigde
419cb8eb4a feat: new folder structure 2024-05-15 18:14:49 +02:00
smartfrigde
e1e472bde3 feat: linux pulseaudio screenshare 2024-04-28 12:56:51 +02:00
smartfrigde
359f2174b7 Simplify tray's code 2023-06-11 17:18:00 +02:00
smartfrigde
dcc28fe381 Make notice show up on Linux 2023-06-10 23:05:39 +02:00
smartfrigde
35b6ee7a5f Update Electron 2023-06-10 23:04:27 +02:00
smartfrigde
fdd9855065 Rework setup and tray 2023-06-10 22:54:46 +02:00
smartfrigde
4937a2cddf Fix tray icon behaviour 2023-06-10 20:06:00 +02:00
Alyxia Sother
a2a997df30
[*] ESLint: The Lintening (#393)
* [*] ESLint: The Lintening

* Missed a couple unused vals in utils

* [*] Tend to DeepScan remarks

* [*] sigh, remove some duplicate crap
2023-05-08 21:24:30 +02:00
smartfridge
254ba93433
Update Window state manager (#291)
* Update Window state

* Add x/y state saving
2022-12-10 19:01:47 +01:00
smartfridge
e6df2b0ecf Make invite socket use arrpc 2022-11-22 15:34:24 +01:00
smartfridge
f523f92367 Add transparency option 2022-10-08 17:43:08 +02:00
KayoticCarnige
f57fe11769
A few things (#199)
* 2 new things (Read desc.)

- Cleaned up ASAR packaging, ignoring unneeded files for building
- Moved install location for Windows users ("AppData\Local\Programs" -> "AppData\Local"

* 3 things (Read desc.)

- Updated things related to Hummus (Hummus settings don't save nor load in it's respective settings window yet, idk why)
- Added check for package version (ArmCord's internal version)
- Made check for Kernel mod a bit cleaner, it still uses the same jank method

* 3 things

- Made macOS titlebar more accurate to Discord
- Added "unFocused" class when window isn't focused
- Added option to uninstall Husky hook for Windows users with reminder to run format script before committing

* Resolved a dumb issue

My dumbass not knowing the "echo" command existed smh

* Made "precommit-fix" warning more noticable

* Whoops

* Fixed a CSS bug

Discord updates are gonna hate us, huh?

* 4 things (Formatted)

- Updated coding for getting the current version
- Updated some context menu and tray stuff
- Added current version to the title of the settings window
- Added the ability to restart the app within the settings

* A few things

- Updated tray menu to include the tray icon infront of the ArmCord version
- Updated MacOS titlebar to not be broken in setup
- Polished settings menu a bit
- Polished the Discord tray icon
- Added the Classic Discord icon as tray icon option
2022-09-25 20:30:09 +02:00
smartfridge
99417c3d29 Add tray icon ping icon 2022-08-25 14:57:41 +02:00
KayoticCarnige
fb6348ee82
(Attempt 2) A bunch of shit (#175)
* 2 new things (Read desc.)

- Cleaned up ASAR packaging, ignoring unneeded files for building
- Moved install location for Windows users ("AppData\Local\Programs" -> "AppData\Local"

* 3 things (Read desc.)

- Updated things related to Hummus (Hummus settings don't save nor load in it's respective settings window yet, idk why)
- Added check for package version (ArmCord's internal version)
- Made check for Kernel mod a bit cleaner, it still uses the same jank method

* 3 things

- Made macOS titlebar more accurate to Discord
- Added "unFocused" class when window isn't focused
- Added option to uninstall Husky hook for Windows users with reminder to run format script before committing

* Resolved a dumb issue

My dumbass not knowing the "echo" command existed smh

* Made "precommit-fix" warning more noticable

* Whoops

* Fixed a CSS bug

Discord updates are gonna hate us, huh?
2022-08-22 11:24:55 +02:00
smartfridge
d6cbbcba7d Add mobile mode 2022-07-11 19:17:46 +02:00
smartfrigde
5d19f1844b cleaning up 2022-07-05 18:34:53 +02:00
KayoticCarnige
efbccabd4c Style overhaul and fully implemented titlebars
Dev note: Titlebars are still a WIP for Linux, using the native theme is recommended for now on Linux
2022-07-04 10:39:22 -04:00
smartfrigde
b7a0d1face formatting 2022-06-16 17:31:57 +02:00
smartfrigde
86f885c41f Add window state manager 2022-06-16 17:25:09 +02:00
smartfrigde
8d85591e1c Change default tray icon for macOS to avoid issues 2022-06-14 16:49:12 +02:00
KayoticCarnige
31c5a88e94 Updated README.md 2022-05-22 12:14:54 -04:00
smartfrigde
b025948d90 Add the ability to pick the tray icon 2022-05-22 16:46:18 +02:00
KayoticCarnige
12c195a2fa Updated titlebar and a few other things 2022-05-22 07:52:26 -04:00
smartfrigde
1222a37a44 Fix image pasting 2022-05-14 19:55:06 +02:00
smartfrigde
41933e3c4f Update assets and add new ones 2022-04-21 18:20:58 +02:00
smartfrigde
495a813af1 Add experimental Discord AC theme 2022-04-20 21:50:23 +02:00
smartfrigde
1be3275375 Change the support link 2022-03-05 18:07:07 +01:00
Alyxia Sother
87920505db
formatting
a.k.a. "Install Prettier"
2022-03-04 18:21:48 +00:00
smartfridge
bab60a4f1b
Update tray.ts 2022-03-01 16:57:05 +01:00
smartfrigde
c98b6016ca Settings, Electron 17 and much more 2022-02-26 22:26:16 +01:00
xTunio
ead7e62d39
fix app verion in tray 2022-02-18 21:20:48 +01:00
smartfrigde
da7bf3948c Too many bug fixes to list here 2022-01-30 20:48:32 +01:00
smartfrigde
0d55c30810 Fix ArmCord not starting 2022-01-16 19:07:00 +01:00
smartfrigde
1debbe60fe Getting ready for 3.0 2022-01-15 22:21:51 +01:00
smartfridge
21fb6e8d93 Titlebar fix + tray + minor code improvements 2021-12-26 19:58:05 +01:00