lab-webaap

Logo

Create a desktop application from website using Nativefier

View the Project on GitHub alysnnix/lab-webaap

Webaap

Script to create webaap automatically using nativefier

Webaap consist on create a desktop application from website. The website morph in a executable and stay in menu app An important observation, you can’t run a Webaap in Windows, only on linux or an apple system, too is nescesary install the Nativefier, because the script use he to create a Webaap

How to run

to run just type

./Webaap.sh

Remember you need to be inside the Webaap directory to exec any command

if don’t have permission type

sudo chmod +x Webaap.sh

Available arguments

pt-br version -pt

To run the pt-br version type

./Webaap.sh -pt


Nativefier

You need install Nativefier to create a Webaap :>

Nativefier Github

How it works ?

Firstly, webaap is just a script that facilitates the execution of nativefier, when opening it will first ask for the name of the application you want to create, this name corresponds to the shortcut that will be created in the application menu.

App icon

Then he asks for an icon link, this is because nativefier allows you to create custom icons for the applications, there is no need to download the icon, just insert the link with some valid extension, we will talk about that later. You can take the icon straight from google images, but I recommend using Flaticon.

Below is an example of a icon taken from the flaticon

https://www.flaticon.com/br/icone-gratis/escudo-de-protecao_65?related_id=65&origin=search

Right-click, and open image in a new tab Then just copy the url and paste it into Webaap.



After finding the link just paste it in the terminal and the script will do the rest, it will also ask for the extension of the icon, it is highly recommended to use icons in png, so just type

png

Inside the script

The script will create a temporary folder in

~/Download/.WebappIcon 

And store your icons inside, you can delete the folder after installing Webaap

Then it will move your app to

/ opt

And create an app.desktop, where it will be available at

/ usr / share / applications

Delete app

But don’t worry about directories When choosing the option to delete an application, just pass exactly the same name you used in the creation, and the script will delete all files and directories created automatically. It is important that the name is exactly the same, otherwise the script will not recognize what to delete

Screen

image