Giter VIP home page Giter VIP logo

Comments (27)

Botspot avatar Botspot commented on May 24, 2024

The desktop shortcut and menu button don't work.
Check the contents of /home/pi/Desktop/discord.desktop - mine contains an entire HTML document in it!

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

oop

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Hmm. what if you just run the command wget http://download941.mediafire.com/nyhl1h8xxcog/18ux1pdfc714tim/discord.desktop -P /usr/bin/discord-linux-armv7l/?

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

That command creates a file at /usr/bin/discord-linux-armv7l/discord.desktop, but it's 43KB of HTML code.

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

This article may be helpful: https://superuser.com/questions/312305/downloading-a-rar-file-from-mediafire-using-wget

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

Probably the best option is for you to create your own GitHub repository and host discord.desktop and discord.svg yourself.
Or, you could be creative and reuse icon-64.png for the .desktop file, and then hardcode discord.desktop creation within the install script.

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

was just about to do that

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

try dis:
Discord.zip

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Updated the desktop files too

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

Works for me. Though it would be more streamlined if you were to do something like this for install:

#!/bin/bash

DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
function error {
  echo -e "\e[31m$1\e[39m"
  exit 1
}

cd ~/Downloads
#Download from github
wget https://github.com/SpacingBat3/nativefier-discord-arm/raw/master/assets/discord-linux-armv7l.tar.gz || error 'Failed to download files!'
#Delete tar.gz and move to /usr/bin
tar -xf discord-linux-armv7l.tar.gz || error 'Failed to extract program!'
rm discord-linux-armv7l.tar.gz
sudo mv discord-linux-armv7l /usr/bin/ || error 'Failed to move folder!'

#Create desktop shortcut
echo "[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Discord
Exec=/usr/bin/discord-linux-armv7l/discord
Icon=${DIRECTORY}/icon-64.png
Categories=Network;Chat;VideoConference;WebApp;Internet
Comment=Your place to talk!
Comment[pl]=Twoje miejsce do rozmów!
GenericName=Network Messenger
GenericName[pl]=Kommunikator internetowy" > /usr/bin/discord-linux-armv7l/discord.desktop

sudo chmod +x /usr/bin/discord-linux-armv7l/discord.desktop

#menu button
sudo cp -a /usr/bin/discord-linux-armv7l/discord.desktop /usr/share/applications

#desktop shortcut
sudo cp -a /usr/bin/discord-linux-armv7l/discord.desktop ~/Desktop/

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Discord.zip

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

That was a lot more work than anticipated

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

Don't worry, you will get the hang of it.
If there's anything I can do to streamline the app creation process, please let me know.
I will add Discord to the official repo soon.

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Thx bro

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

oop i think its broken again

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

No don't worry, I'm fixing it all up and trying various scenarios on it to make it BULLETPROOF. :)

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Your version of install.sh is slightly broken I think.

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

tried installing and the program folder didnt even get moved, the icon doesn't show up for the shortcuts, and the menu bar shortcut isn't even there lol

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

I know. Don't worry.

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

OK it's been added to the repo.

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

I updated the repo and it auto started installing discord. Is that supposed to happen?

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Also, the reason I didn't want to use the icon for discord in /apps/discord is that the middle is transparent.
image

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

Yes. Pi-Apps remembers that Discord was installed prior to the update.
When it updates, it uninstalls, copies the new files in, and then reinstalls.

If Discord had been uninstalled prior to updating, Pi-Apps wouldn't have installed it. APT does the same thing.

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

Probably should fix up the icon tho.

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

I noticed the bad transparency in the image. As that transparency is undesirable in all cases, I will fix the icons.

from pi-apps.

Botspot avatar Botspot commented on May 24, 2024

icons fixed.

from pi-apps.

NoozAbooz avatar NoozAbooz commented on May 24, 2024

#6

from pi-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.