A script that will attempt to assemble a validating Rainmeter skin package for quick and easy distibution on Github.
Project description
rmskin-action
A Python-based Github action tool to package a Repository’s Rainmeter Content into a validating .rmskin file for Rainmeter’s Skin Installer.
Input Arguments
Argument |
Description |
Required |
---|---|---|
version |
Version of the Rainmeter rmskin package. Defaults to last 8 digits of SHA from commit or ref/tags |
no |
title |
Name of the Rainmeter rmskin package. Defaults to name of repository |
no |
author |
Account Username maintaining the rmskin package. Defaults to Username that owns the repository. |
no |
path |
Base directory of repo being packaged. Defaults to workflow’s workspace path |
no |
dir_out |
Path to save generated rmskin package. Defaults to workflow’s workspace path |
no |
Output Arguments
arc_name : The name of the generated rmskin file saved in the path specified by dir_out input argument.
Ideal Repo Structure
root directory
Skins a folder to contain all necessary Rainmeter skins
RMSKIN.ini list of options specific to installing the skin(s)
Layouts a folder that contains Rainmeter layout files
Plugins a folder that contains Rainmeter plugins
@Vault resources folder accessible by all installed skins
Example Usage
name: RMSKIN Packager
on:
push:
pull_request:
release:
types:
- published
jobs:
Build_n_Release:
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout this Repo
uses: actions/checkout@v2
# Runs a rmskin packager action
- name: Run Build action
id: builder
uses: 2bndy5/rmskin-action@v1.1.2
# Use the output from the `builder` step
- name: Print the output filename
run: echo "The output file was ${{ steps.builder.outputs.arc_name }}"
# get release upload_url
- name: Get Release
id: get_release
uses: bruceadams/get-release@v1.2.0
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload the asset
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./${{ steps.builder.outputs.arc_name }}
asset_name: ${{ steps.builder.outputs.arc_name }}
asset_content_type: application/zip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rmskin_builder-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a74b15b6d002d21885f8223cddc8431a1b798f96bbf6cc81863ace53edb0a2 |
|
MD5 | a6ad6ae9b77e146a34e42e158c517e4e |
|
BLAKE2b-256 | 818cdabe94a04443fa8cfa9104840ebf5f92ea49bebbdb8c58a2d27a44a17033 |