Electron Webapp for iHeartRadio
This is a Node.js JavaScript application, but it is NOT a NPM package. This is solely for desktop use purposes.
In this application, we use the Electron Framework (https://github.com/electron/electron) to turn a webpage into a webapp.
Like Spotify, you will be able to access all of iHeartRadio for Linux and MacOS.
We have the normal npm build and a Jakefile (https://github.com/jakejs/jake) if you wish (though I won't QA the Jakefile much).
For this example we will just use npm. To initially install the dependencies:
npm install
And it is good practice in my opinion to always check to see if any of the ~431 dependencies have updates.
npm audit fix
To run the webapp, you can run either:
npm start OR npm run run
Now we can start building. We have several build scripts but here are the most important.
Big thanks to those who work with the electron-builder (https://github.com/electron-userland/electron-builder) to make this a lot more easier :)
By default these build for x86/64-bit general systems such as amd64. To build an AppImage and Snap, you can run:
npm run build
To build for Macintosh/Mac OS systems (yes there is support, this will generate a DMG):
npm run build-mac
For the sake of not wasting my time with 32-bit since support for everywhere is slowly dropping, I will only support x86 and Raspberry-Pi arm64. However electron-builder currently is doing weird stuff with arm64 builds which it shouldn't (it's setting up VM's to build which is unneccessary), so for now we will be using the 32-bit arm7l/armhf until I work with the devs to fix this problem :)
We can also use this for testing purposes. To build for armv7l/armhf:
npm run build-armv7l
I'm pretty sure Mac's dont run on ARM devices so the above only builds AppImages and Snaps.
This install script is only for linux. This is because the resulting build is a bunch of libraries which has to be installed to many locations so I simplified it and made a decent install script for it. For Mac OS/DMG's it's already bundled in so you don't have to stress about it. You can run
npm install-linux
and that'll take care of it for you.
Help is LOVELY appreciated! Fork and submit a PR. I look forward to seeing you.
This is licensed under the GNU General Public License v3+ license.
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
You are about to open
Do you wish to proceed?
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:
sudo apt update
sudo apt install snapd
After this, install the snapd snap in order to get the latest snapd:
sudo snap install snapd
To install iHeartRadio, simply use the following command:
sudo snap install iheartradio
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.
Get to know Canonical, the company behind the products.
The world's favourite Linux OS for servers, desktops and IoT.
One subscription for security maintenance, support, FIPS and other compliance certifications.
The app store for Linux: secure packages and ultra-reliable updates.
A pure-container hypervisor. Run system containers and VMs at scale.
Build a bare metal cloud with super fast server provisioning.
Upgrades, maintenance, support, and fully managed options for long-term, low-cost infra.
Software-defined storage that lowers your total cost of ownership.
App portability for K8s on VMware, Amazon, Azure, Google, Oracle, IBM and bare metal.
Deploy, integrate and manage applications at any scale, on any infrastructure.
Stream Android applications to any device.
The software collaboration platform behind Ubuntu.
Optimised Ubuntu for public clouds.
Spin up Ubuntu VMs on Windows, Mac and Linux.
Control and customise your cloud instances.
Systems management and security patching for Ubuntu.
Simplify and standardise complex network configuration.
AI and MLOps at any scale, on any cloud.
Deploy a fully functional cloud in minutes.