GithubHelp home page GithubHelp logo

funcy2267 / kodi-script-launcher Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 22 KB

Create your own executable Kodi addons.

Makefile 6.06% Python 16.17% Shell 77.76%
kodi kodi-plugin bash bash-script python linux kodi-addon-template media-center kodi-addons addon

kodi-script-launcher's Introduction

About

This script lets you easily make your own Kodi addon, that will execute your bash script on Linux directly from GUI.

Configuration

You have to configure two files for your addon.
Base configuration for your addon is config.txt:

  • ADDON_ID [required] - ID of your addon (e.g. script.launcher.firefox)
  • NAME [required] - Name of your addon that shows up on the list (e.g. Firefox)
  • LANGUAGE [required] - Language code for summary, description and the whole addon (e.g. en)
  • VERSION [optional] - Version of your addon (e.g. 1.0)
  • PROVIDER [optional] - Provider of your addon (e.g. Mozilla Foundation)
  • SUMMARY [optional] - A short description about what your addon does (e.g. Firefox laucher)
  • DESCRIPTION [optional] - Longer description about your addon
  • IMAGE_ICON [optional] - Path to icon image for your addon (e.g. /home/user/Pictures/image.png)
  • IMAGE_FANART [optional] - Path to fanart image for your addon (e.g. /home/user/Pictures/fanart.jpg)

Script

script.sh is a script file, that will be executed after launching your addon from Kodi.

Usage

To install your addon you need to build it first. Here are possible make rules that you can do:

  • make - configure and build addon.zip
  • make install - install addon to default Kodi directiory
  • make uninstall - remove addon from default Kodi directiory
  • make clean - clean build directory

kodi-script-launcher's People

Contributors

funcy2267 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

strzlee

kodi-script-launcher's Issues

Questions

I tried to use this . I have an x86_64 install of libreELEC running but building on my Linux Mint x86_64

I was able to build a script that should launch a simple python command calling it "myaddon"
On the first make install I found a .zip file in the addon directory script.myaddon on the Linux mint system and copied that to the LibreELEC system and installed it there from ZIP
After restarting libreELEC it did not start the script

so I figured remove it I would try again...

make uninstall did not seem to work on my linux mint, and I would not expect it to work on LibreELEC so the folder was removed on both.

So I went back thinking maybe I had to call it script.launcher,myscript and changed the name.
after make and make install there is no ZIP file this time but there is a new addon folder with the new name

Turns out I do see a zip in the build directory

How can I add dependencies to this? I need to ensure python and requests addons are installed.

is there a way to add files to the built zip or can I add them to the zip file after it is built?

any ideas on why my python script not running? Is the addon name I select important?

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.