Giter Site home page Giter Site logo

miguelguthridge / nativefier-scripts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 877 KB

A collection of scripts and icons to make it speediter to "nativefy" web apps

License: The Unlicense

CSS 17.75% JavaScript 3.51% Shell 78.74%
linux nativefier scripts

nativefier-scripts's Introduction

Nativefier scripts

A collection of scripts and icons to make it speedier to "nativefy" web apps.

You'll need Nativefier installed for these to work.

npm i -g nativefier

I've made these scripts public so other people can benefit from them, but they're mainly for my own personal use. As such I probably won't accept improvements or additions. I don't want this to become some huge repository of random scripts for making random apps. Feel free to copy and modify the scripts as required if you want to use your own apps with it.

Building apps

Run the script for the required app.

Eg to build Facebook Messenger: ./build-scripts/com.Facebook.Messenger.sh

Desktop entries

These are hard-coded since I can't be bothered to make a proper script for generating them. Dynamically.

You can still link them up using link-desktop.sh. Just give it the ID of the app and it'll link the desktop entry and the icon for you. For example, to link Facebook Messenger: ./link-desktop.sh com.Facebook.Messenger. Note that this doesn't ensure that the files exist, so be careful not to make typos or they won't work.

Fixing icons

Icons don't seem to work correctly under Wayland unless you do some hacking around.

To fix the icons for an app, go into it's build folder, then go to resources/app/package.json. Change the app name to be its app ID (eg com.Facebook.Messenger) and hit save. This should cause it to work in most places.

Fix grabbed from this GitHub issue.

Todo

  • Use XDG commands to install the desktop files and icons rather than copying them manually.

nativefier-scripts's People

Contributors

miguelguthridge avatar

Watchers

 avatar

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.