Skip to main content

A script that will attempt to assemble a validating Rainmeter skin package for quick and easy distibution on Github.

Project description

https://github.com/2bndy5/rmskin-action/workflows/CI/badge.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rmskin-builder-1.1.6.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

rmskin_builder-1.1.6-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page