Commit graph

68 commits

Author SHA1 Message Date
SelfMadeSystem
69c34435f2
Add transparency to linux (#618)
Co-authored-by: smartfridge <37928912+smartfrigde@users.noreply.github.com>
2024-06-15 10:22:03 +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
fb50a89ce3 fix: enable pulseaudio sharing on non-wayland sessions 2024-04-29 19:14:29 +02:00
smartfrigde
e1e472bde3 feat: linux pulseaudio screenshare 2024-04-28 12:56:51 +02:00
smartfridge
c662b30ddc add ms store manifest 2024-04-05 12:04:00 +02:00
smartfrigde
037a26ef34 fix config check 2024-01-28 14:59:00 +01:00
smartfrigde
b1f876de7c git pull 2023-09-25 13:15:49 +02:00
smartfrigde
831d45dc45 add multi instance 2023-08-20 21:14:26 +02:00
smartfrigde
8e43e5abcc fix wayland screenshare 2023-08-05 14:07:42 +02:00
smartfrigde
d066c9ebc1 implement keybind maker ui 2023-07-24 21:51:28 +02:00
smartfrigde
ba27104be6 Fix setup not starting up 2023-07-03 13:25:26 +02:00
smartfrigde
5aefe765ec Add potential workarounds for renderer crash 2023-06-17 18:33:26 +02:00
smartfrigde
89e4c3570d Rewrite splash 2023-06-11 18:50:07 +02:00
smartfrigde
0e21a82b6c Remove basic mode 2023-06-11 17:18:41 +02:00
smartfrigde
1e19b808f9 Don't grab media key controls 2023-06-10 19:43:59 +02:00
smartfrigde
4f31bcb32e Add theme info modal 2023-05-14 13:42:38 +02:00
smartfrigde
51018b108a Update to new desktop icon 2023-05-13 22:53:48 +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
smartfrigde
08c4cb0a63 Add a way to set config in cli 2023-04-25 10:57:49 +02:00
Oro
b42e4d91ea
Comment out any Linux and Wayland checks (#356)
* Redo the Wayland checks for Linux

* Update the Wayland window decorations comments

* Nit: don't nest if checks, update some comments

* Nit: stricter env var checks

* toLowerCase() on Wayland/Linux string checks

* Use toLowerCase() properly

Co-authored-by: Ven <vendicated@riseup.net>

* Don't use toLowerCase() on XDG_SESSION_TYPE

* Null safety for XDG_SESSION_TYPE and toLowerCase

* Change how appendSwitch is used

* Forgot the quotes

* When the platform is Linux, it will always be lowercase

Co-authored-by: unlwly <x57luw@gmail.com>

* Comment out any Linux and Wayland checks

They were nonfunctioning anyways.

---------

Co-authored-by: Ven <vendicated@riseup.net>
Co-authored-by: unlwly <x57luw@gmail.com>
2023-03-09 16:50:17 +01:00
smartfridge
f8d7ca68fa
Revert "Redo the Wayland checks for Linux (#327)" (#338)
This reverts commit a66f477af6.
2023-01-24 19:54:18 +01:00
Oro
a66f477af6
Redo the Wayland checks for Linux (#327)
* Redo the Wayland checks for Linux

* Update the Wayland window decorations comments

* Nit: don't nest if checks, update some comments

* Nit: stricter env var checks

* toLowerCase() on Wayland/Linux string checks

* Use toLowerCase() properly

Co-authored-by: Ven <vendicated@riseup.net>

* Don't use toLowerCase() on XDG_SESSION_TYPE

* Null safety for XDG_SESSION_TYPE and toLowerCase

Co-authored-by: Ven <vendicated@riseup.net>
2023-01-24 10:29:57 +01:00
smartfridge
6355082718 USE_WAYLAND env value handler 2022-12-27 16:12:34 +01:00
smartfridge
8cdfac0367 Fix first-time setup 2022-12-24 19:46:58 +01:00
Christopher Snowhill
969d1c3662
Fix environment access for Linux Wayland patches (#304) 2022-12-17 10:06:40 +01:00
smartfridge
147f361341 Fix Windows tray ico scaling 2022-12-13 20:23:17 +01:00
Octopus Hugger
63db76cd7e
Avoid window creation/init if 2nd instance (#297)
* fix first instance not showing when opening 2nd

* Avoid window creation/init if 2nd instance

* fix white flash on startup, add en-us transparent entry for future use

* fix white flash for settings window too

Co-authored-by: octopushugger <octopushugger@github.com>
2022-12-13 19:45:21 +01:00
smartfridge
c8c4e1a877 Add local crash reporter 2022-12-13 14:10:41 +01:00
Remty5
378fef1a0e
Add portable mode (#280) 2022-12-03 16:21:25 +00:00
Ven
ed775cbf31
Fix npm format script (#261) 2022-11-21 06:50:21 +01:00
smartfridge
5d80d44fc8 Re-add client mods (vencord, shelter) 2022-11-19 18:23:28 +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
5c109f530b Add custom icon 2022-08-25 16:42:54 +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
c933981420 Add fixes for pasting images using keyboard shortcuts 2022-07-14 17:25:59 +02:00
smartfridge
0ebaa5627e code cleanup 2022-07-11 20:19:50 +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
a216475618 Add theme loader 2022-06-16 23:09:41 +02:00
smartfrigde
c979328aee Remove glasstron and tabs completely 2022-06-14 17:02:37 +02:00
smartfrigde
81377d3657 Add performance mode 2022-06-10 20:27:37 +02:00
KayoticCarnige
12c195a2fa Updated titlebar and a few other things 2022-05-22 07:52:26 -04:00
smartfrigde
d2eeb054d4 Remove auto launch 2022-05-14 21:33:43 +02:00
smartfrigde
22343e00ed Fix path finding for auto-launch 2022-05-14 21:12:16 +02:00
smartfrigde
5893f5bea9 Add auto-launch and bunch of other things 2022-05-14 21:02:09 +02:00
smartfrigde
4c8cd2bf57 Make window decorations work on Gnome Wayland 2022-04-22 20:39:00 +02:00