Giter Site home page Giter Site logo

gfn-to-app's Introduction

GFN-to-App ๐Ÿ“

Creates app bundles from Geforce Now game shortcuts. uses the game's id extracted from the shortcut and passing it as an argument to the geforce now app located in /Applications/GeForceNOW.app

This is so you can access the Game from launchpad or even Steam.

Usage

The Script runs Interactively and via CLI.

To run interactively simply execute the script

./gfn-to-app.sh.

If you get permissions error make sure the script is executable by running:

chmod u+x gfn-to-app.sh

As for running from CLI you can specify both or either of the inputs; otherwise, the shell will ask you to input them.

you can plase a single - to skip the prompt for the icon file to use the one made by the geforce shortcut automatically; However, using - in place of the game shortcut path will prompt the shell to ask for it. (the geforce game shortcut path can not be empty)

 ./gfn-to-app "path/to/shortcut/file.gfnpc" "path/to/icon.icns"

Examples

  ./gfn-to-app - -
  ./gfn-to-app "/Users/asamahy/Desktop/FrostPunk on GeForce NOW.gfnpc" -
  ./gfn-to-app "/Users/asamahy/Desktop/FrostPunk on GeForce NOW.gfnpc" "icon.icns"
  ./gfn-to-app - "icon.icns"

For Debugging

you can set a third - to see simple steps and a forth argument d will debug the whole script.

To Do

  • Use getopt instead.
  • Search for icons in a directory
  • Find another method of getting the image from the resource fork instead of relying on resource_dasm
  • add other todos to the To Do list.

gfn-to-app's People

Contributors

asamahy avatar

Stargazers

 avatar

Watchers

Jeaz avatar  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.