Nativefier - dibrz/ARMBand GitHub Wiki
Nativefier is a cross-platform, Electron application (built on Chromium and Node.js), that allows you to turn any website into a native OS app. This way you can easily "open" and "close" your Cloudbox apps without the memory footprint of a typical internet browser.
Screenshots (macOS):
The following steps will guide you through setting up Nativefier on your PC to generate apps.
-
Install Node.js
-
For macOS, install Xcode and ImageMagick [1]
-
Note: This is only needed for automatic website icon to app icon conversion. If you want to skip installing Xcode and ImageMagick, but still want to be able to customize the application icon, you can do so by; first, finding a transparent png of the application (e.g. google image search
transparent png appname
), and then, following directions on this page.
-
Note: This is only needed for automatic website icon to app icon conversion. If you want to skip installing Xcode and ImageMagick, but still want to be able to customize the application icon, you can do so by; first, finding a transparent png of the application (e.g. google image search
-
Install Nativefier with this command:
sudo npm install nativefier -g
nativefier appname.domainname.com
-
Give it a name:
--name "App Name"
-
Add Basic HTTP Authentication (replace
yourusername
andyourpassword
with your login info:--basic-auth-username yourusername --basic-auth-password yourpassword
Note:
- If you plan to use this, set your apps to use HTTP Authentication (i.e. Basic or Browser popup) vs Forms/Login Page.
- Apps that will need changing are: Sonarr, Radarr, NZBGet, NZBHydra, and PlexPy (TauTulli).
-
Disable dev tools:
--disable-dev-tools
-
Force a specific icon (
path/to/icon
can be a local file path or a URL)--icon "path/to/icon"
-
Force a zoom at start:
--zoom=<zoomlevel>
Example:
--zoom=0.8
Note: You can also temporarily change the zoom levels with
ctrl
+
andctrl
-
in Windows orcommand
+
andcommand
-
in macOS. -
In macOS, to completely quit out of the app when you close the window:
--fast-quit
nativefier --name "Sonarr" "https://sonarr.domain.com"
nativefier --name "Radarr" "https://sonarr.domain.com"
nativefier --name "PlexPy" "https://plexpy.domain.com/home"
nativefier --name "Jackett" "https://jackett.domain.com/Admin/Dashboard"
nativefier --name "Plex Requests" "https://plexrequests.domain.com"
nativefier --name "NZBGet" "https://nzbget.domain.com"
nativefier --name "NZBHydra" "https://nzbhydra.domain.com"
nativefier --name "ruTorrent" "https://rutorrent.domain.com"
nativefier --name "Sonarr" --basic-auth-username myusername --basic-auth-password mypassword --fast-quit --disable-dev-tools "https://sonarr.domain.com"
nativefier --name "Sonarr" --basic-auth-username myusername --basic-auth-password mypassword --disable-dev-tools "https://sonarr.domain.com"
Copy the app (e.g. .app
in MacOS, .exe
in Windows) to your desktop or the applications location (i.e. Applications folder in MacOS, Start Menu in Windows)
You can also use the Docker image to create Nativefier binaries.
docker run -v ~/:/target jiahaog/nativefier --name "APP NAME" --platform linux/windows/mac --arch x64 --disable-dev-tools --basic-auth-username USERNAME --basic-auth-password PASSWORD https://APP.domain.ltd /target/
NZBHydra2 on Windows
docker run -v ~/:/target jiahaog/nativefier --name "NZBHydra2" -p windows -a x64 --disable-dev-tools --basic-auth-username myusername --basic-auth-password mypassword https://nzbhydra2.domain.com /target/
Ombi on Mac
docker run -v ~/:/target jiahaog/nativefier --name "Ombi" -p mac -a x64 --disable-dev-tools --basic-auth-username myusername --basic-auth-password mypassword https://ombi.domain.com /target/