项目作者: hiulit

项目描述 :
Script for RetroPie to install some extras for EmulationStation themes (icons, splashscreens and launching images)
高级语言: Shell
项目地址: git://github.com/hiulit/es-theme-extras.git
创建时间: 2017-09-30T11:27:37Z
项目社区:https://github.com/hiulit/es-theme-extras

开源协议:MIT License

下载


Extras for RetroPie themes

This is my first shell script ever, so there are surely code errors. Contributing is most welcomed.

This script let’s you install some extras for RetroPie themes. These extras are:

  • Icons
  • Splashscreens
  • Launching images

Install Pixel
Update or Uninstall Pixel
Extras
Install Pixel icons
Install Pixel splashscreen
Choose splashscreen
Install Pixel launching images

Installation

  1. cd /home/pi/
  2. git clone https://github.com/hiulit/es-theme-extras.git
  3. cd es-theme-extras/
  4. sudo chmod +x es-theme-extras.sh
  5. sudo ./es-theme-extras.sh

The big issue

At this moment, Pixel is the only theme that works with this script because it’s the only one (that I know of) that has icons, splashscreens (16:9 and 4:3) and launching images.

Pixel theme has both icons and splashscreens in the same repository and launching images has its own repository.

This script is created under these premises:

  • Icons and splashscreens must be in the same repository https://github.com/USERNAME/es-theme-THEME.
  • Icons must be in path /retropie/icons.
  • Splashscreens must be in the root path and named splash16-9.png and/or splash4-3.png.
  • Launching images must be in another repository https://github.com/USERNAME/es-runcommand-splash.

I think that could be standarized so that every theme could take advantage of this script.

Proposal for standarization

I propose two versions:

When the decision is made, I’ll make the necessary changes according to the version agreed upon.

Self-contained (same repository) version

  • Theme URL: https://github.com/USERNAME/es-theme-THEME
  • Icons URL: https://github.com/USERNAME/es-theme-THEME/retropie/icons
  • Splashscreens URL: https://github.com/USERNAME/es-theme-THEME/retropie/splashscreens
  • Launching images URL: https://github.com/USERNAME/es-theme-THEME/retropie/launching-images

Diferent repositories version

  • Theme URL: https://github.com/USERNAME/es-theme-THEME
  • Icons URL: https://github.com/USERNAME/es-theme-THEME-icons
  • Splashscreens URL: https://github.com/USERNAME/es-theme-THEME-splashscreens
  • Launching images URL: https://github.com/USERNAME/es-theme-THEME-launching-images

Where USERNAME is GitHub’s username and THEME is the theme’s name.

Filetype, naming convention and formatting

In both cases the filetype, naming convention and formatting must be the same, as follows:

Icons

Filetype

  • Icons must be .png filetype

Naming conventions

Names must be the same as RetroPie’s default icons:

  • audiosettings.png
  • bluetooth.png
  • configedit.png
  • esthemes.png
  • filemanager.png
  • raspiconfig.png
  • retroarch.png
  • retronetplay.png
  • rpsetup.png
  • runcommand.png
  • showip.png
  • splashscreen.png
  • wifi.png

See https://github.com/RetroPie/RetroPie-Setup/tree/master/scriptmodules/supplementary/retropiemenu/icons

Formatting

Same as RetroPie’s default icons:

  • Names must be all lowercase
  • No spaces

See https://github.com/RetroPie/RetroPie-Setup/tree/master/scriptmodules/supplementary/retropiemenu/icons

Splashscreens

Filetype

  • Image splashscreens must be .png filetype
  • Video splashscreens must be .mp4 filetype

Naming conventions

Images

  • THEME-splashscreen-16-9.png

e.g pixel-splashscreen-16-9.png

  • THEME-splashscreen-4-3.png

e.g pixel-splashscreen-4-3.png

Videos

  • THEME-splashscreen-video.mp4

e.g pixel-splashscreen-video.mp4

Formatting

  • Names must be all lowercase
  • Spaces must be hyphens

Launching images

Filetype

Launching images must be .png or .jpg filetype

Naming conventions

  • SYSTEM_NAME/launching.png

e.g. nes/launching.png

See https://github.com/ehettervik/es-runcommand-splash

Formatting

  • Names must be all lowercase
  • No spaces

Changelog

v0.1.1 (November 7th 2017)

  • Fixed backtitle.
  • Removed comments.
  • Fixed git pull when theme needs an update.

v0.1.0 (October 5th 2017)

  • Initial commit

Contributing

First of all, I really appreciate that you’re willing to waste spend some time contributing to es-theme-extras! 🎉👍

You can help make es-theme-extras better by reporting issues or contributing code.

Issues

Issues can be used not only for bug reporting, but also for suggesting improvements, whether they are code related (cleaner code, modularity, etc.) or feature requests.

Guidelines

  • Search previous issues before creating a new one, as yours may be a duplicate.
  • Use a clear and descriptive title for the issue to identify the problem.
  • Describe the exact steps which reproduce the problem in as many details as possible.

Pull requests

Pull requests are most welcomed! 😃

Authors

Me 😛 @hiulit.

Credits

Filetype, naming conventions and formatting taken (partially and revisited) from retropie-splashscreens-extra repository by HerbFargus

License

MIT License

Copyright (c) 2017 Xavier Gómez Gosálbez

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.