Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add armcord application #1855

Merged
merged 5 commits into from Jun 21, 2022
Merged

add armcord application #1855

merged 5 commits into from Jun 21, 2022

Conversation

ryanfortner
Copy link
Collaborator

No description provided.

@theofficialgman theofficialgman marked this pull request as draft May 22, 2022 20:16
@theofficialgman
Copy link
Collaborator

theofficialgman commented May 22, 2022

@ryanfortner converted to draft due to outdated armcord release build on electron 18.2.3 (or older 18.x.y) with bug preventing buster/bionic

ArmCord/ArmCord#117

@Botspot
Copy link
Owner

Botspot commented May 22, 2022

The install-32 script seems to be missing. I'm fairly sure ArmCord works on armhf.

@ryanfortner
Copy link
Collaborator Author

The install-32 script seems to be missing. I'm fairly ArmCord works on armhf.

There are no armhf binaries provided in releases currently, I could try compiling from source though. ArmCord/ArmCord#118

@theofficialgman theofficialgman added the Upstream Bug something isn't working that can only be fixed upstream label May 31, 2022
@theofficialgman
Copy link
Collaborator

I fixed releases upstream. a new 3.0.6 build is being made now. it will have armv7l debs as well. https://github.com/ArmCord/ArmCord/actions/runs/2417289145

just waiting on the dev to rename, make the tag, and publish

@ryanfortner ryanfortner marked this pull request as ready for review May 31, 2022 20:19
@ryanfortner
Copy link
Collaborator Author

Just bumped the version and added install-32. This should be good to go.

@theofficialgman
Copy link
Collaborator

theofficialgman commented May 31, 2022

tested on arm64 and the application works but the .desktop icon is missing...

it seems to have installed here:
/usr/share/icons/hicolor/0x0/apps/armcord.png

but it does not get used even after rebooting or reloading the cache

the 0x0 directory is very strange as well...

tracking here: ArmCord/ArmCord#128

@theofficialgman
Copy link
Collaborator

tested on arm64 and the application works but the .desktop icon is missing...

it seems to have installed here:
/usr/share/icons/hicolor/0x0/apps/armcord.png

but it does not get used even after rebooting or reloading the cache

the 0x0 directory is very strange as well...

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

the 0x0 directory is very strange as well...

Yeah, never seen that before..

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

Fails to install on armhf:

OS: Raspbian GNU/Linux 11 (bullseye)
OS architecture: 32-bit
Last updated Pi-Apps on: 05/31/2022
Latest Pi-Apps version: 05/31/2022
Kernel: aarch64 5.15.32-v8+
Device model: Raspberry Pi 4 Model B Rev 1.2
Cpu name: Cortex-A72
Ram size: 3.79 GB
Raspberry Pi OS image version: 2022-01-28
Language: en_US.UTF-8

BEGINNING OF LOG FILE:
-----------------------

nice: ‘/home/pi/pi-apps/apps/ArmCord/install-32’: No such file or directory

Failed to install ArmCord!
◢◣Need help? Copy the ENTIRE terminal output or take a screenshot.
Please ask on Github: https://github.com/Botspot/pi-apps/issues/new/choose
Or on Discord: https://discord.gg/RXSTvaUvuu

Kind of a weird error..
install-32 does exist.

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

I think found the problem:

$ /home/pi/pi-apps/apps/ArmCord/install-32
bash: /home/pi/pi-apps/apps/ArmCord/install-32: /bin/bash^M: bad interpreter: No such file or directory

@ryanfortner It looks like you edited the script with a weird text editor..

@theofficialgman
Copy link
Collaborator

theofficialgman commented May 31, 2022

I changed the line ending to be LF, might work now. only the install-32 was CRLF

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

Yeah, it works now. (The install script starts. I haven't tested the app yet)

@theofficialgman
Copy link
Collaborator

theofficialgman commented May 31, 2022

I notified upstream of the icon issue. appears to be an electron builder oversight or bug, they will try to fix tomorrow and then make another release. ArmCord/ArmCord#128

lets hold off on this a bit longer

@ryanfortner
Copy link
Collaborator Author

ryanfortner commented May 31, 2022

I think found the problem:

$ /home/pi/pi-apps/apps/ArmCord/install-32
bash: /home/pi/pi-apps/apps/ArmCord/install-32: /bin/bash^M: bad interpreter: No such file or directory

@ryanfortner It looks like you edited the script with a weird text editor..

That's odd, I was using the built-in github vscode editor...

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

It's weird that the ArmCord icon is 1280x1280, yet it's in the 0x0 folder:
image

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

I think found the problem:

$ /home/pi/pi-apps/apps/ArmCord/install-32
bash: /home/pi/pi-apps/apps/ArmCord/install-32: /bin/bash^M: bad interpreter: No such file or directory

@ryanfortner It looks like you edited the script with a weird text editor..

That's odd, I was using the built-in github vscode editor...

The one online? Maybe it expects you're using Windows (lol, probably not..), and that's just the default..

@Crilum
Copy link
Contributor

Crilum commented May 31, 2022

I found the setting for it:
github-dev-line-ending

@theofficialgman
Copy link
Collaborator

upstream kept the same release number but the deb is fixed now

@theofficialgman theofficialgman removed the Upstream Bug something isn't working that can only be fixed upstream label Jun 1, 2022
@Botspot
Copy link
Owner

Botspot commented Jun 6, 2022

I just tested this, and my only complaint is that the taskbar icon is unset, so it displays the generic "program" icon.
Last year, I asked SpacingBat3 how to set the icon in an Electron app, and he said to call BrowserWindow() with {icon: "/path/to/icon"}.
@smartFridge

@theofficialgman
Copy link
Collaborator

armcord does this already, I think the problem is the path is wrong for deb installs. that icon location doesn't exist https://github.com/ArmCord/ArmCord/blob/40d743d0e21e2b61659b9497ca4bb0e42b811b63/src/window.ts#L116-L147

@theofficialgman
Copy link
Collaborator

I just tested this, and my only complaint is that the taskbar icon is unset, so it displays the generic "program" icon. Last year, I asked SpacingBat3 how to set the icon in an Electron app, and he said to call BrowserWindow() with {icon: "/path/to/icon"}. @smartFridge

also btw, I don't have this problem. taskbar icon is correctly set

@Crilum
Copy link
Contributor

Crilum commented Jun 7, 2022

@Botspot Which icon do you mean? The taskbar icon is correct, but the window icon is missing:
armcordIcon

@Botspot
Copy link
Owner

Botspot commented Jun 7, 2022

@Botspot Which icon do you mean? The taskbar icon is correct, but the window icon is missing: armcordIcon

The system tray icon works for me, but the taskbar icon/program icon does not work.

also btw, I don't have this problem. taskbar icon is correctly set

@theofficialgman, that is to be expected on Ubuntu Gnome. Gnome DE uses the menu entry's icon if one is not set. I personally think this decision harmed the rest of the linux community, because it reduced the incentive to build apps correctly.
If worst comes to worst, it's possible to make a wrapper script with some xseticon magic like I did with Boxy SVG, but I'd rather it just be done right in the source code.

@theofficialgman
Copy link
Collaborator

theofficialgman commented Jun 7, 2022

@theofficialgman, that is to be expected on Ubuntu. Ubuntu DE uses the menu entry's icon if one is not set. I personally think this decision harmed the rest of the linux community, because it reduced the incentive to build apps right.

I assume you mean gnome (Ubuntu has no control over them) or unity. I was testing on budgie so I will have to check on lxde to see if that's the case

edit: confirmed, icon is missing in the taskbar in LXDE

@smartfrigde
Copy link

smartfrigde commented Jun 10, 2022

image
Seems to be fixed, I'll double check on other DEs tho. The fix will be on the dev branch which means it'll be either in newer release (which will take a while) or I can backport it to 3.0.6

@Botspot
Copy link
Owner

Botspot commented Jun 12, 2022

image Seems to be fixed, I'll double check on other DEs tho. The fix will be on the dev branch which means it'll be either in newer release (which will take a while) or I can backport it to 3.0.6

@smartfrigde Whether you would rather wait or backport, it is up to you.
You can also say if you want ArmCord added to Pi-Apps before the program icon works correctly on Raspberry Pi OS. I wouldn't recommend this, but that's your choice.

@Sussy-OS
Copy link
Contributor

I can't wait till this app comes! I mean, WebCord is good, but you cannot mod it like you can with ArmCord. 😄

@Botspot
Copy link
Owner

Botspot commented Jun 16, 2022

On a similar note to @Sussy-OS's comment, I recently noticed that WebCord's menubar no longer disappears when pressing the Alt key.

@smartfrigde
Copy link

v3.0.7 is ready with the icon fix ;)

@theofficialgman theofficialgman marked this pull request as draft June 17, 2022 15:57
@theofficialgman
Copy link
Collaborator

theofficialgman commented Jun 17, 2022

@smartfrigde sorry this can't be merged
electron's current 19 releases are broken on arm64 buster/bionic
https://github.com/ArmCord/ArmCord/blob/538bd1041292873356684eeaab13204076915c1f/package.json#L29

see: #1930

we are still waiting on 19.0.5 to release, the fix is already in the electron 19.x.y branch

@smartfrigde
Copy link

Once 19.0.5 releases I'll re-do the release and notify you here.

@smartfrigde
Copy link

Done.
image

@theofficialgman theofficialgman marked this pull request as ready for review June 21, 2022 15:59
@theofficialgman
Copy link
Collaborator

@Botspot merge whenever you get the chance to add the bitly links

@Sussy-OS
Copy link
Contributor

I never knew bitly had an API until @Botspot started using it.

@Botspot Botspot merged commit 5a5f2b5 into master Jun 21, 2022
@Sussy-OS
Copy link
Contributor

Sussy-OS commented Jun 21, 2022

How is this open, yet ArmCord is added?
EDIT: My pi just updated that this is closed as I sent this.

@Botspot Botspot deleted the ryanfortner-armcord branch June 21, 2022 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants