Created blueprint extension and changed base script to be able to run as tapermonkey addon and as extension#2
Open
sirzento wants to merge 4 commits into
Open
Created blueprint extension and changed base script to be able to run as tapermonkey addon and as extension#2sirzento wants to merge 4 commits into
sirzento wants to merge 4 commits into
Conversation
… as tapermonkey addon and as extension
Author
|
Let me just try out those release actions. Never used those before. I will write here again if I got the right ones working :D |
Author
|
Alright, its ready now. name: Zip and Attach to Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create ZIP archive
run: |
zip -r pterosort.blueprint . -x "*.git*" "*node_modules*" ".editorconfig"
- name: Extract JS from wrapper.blade.php
run: |
sed -n '/<script>/,/<\/script>/p' ./dashboard/wrapper.blade.php | \
sed '1d;$d' > pterosort.js
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: |
pterosort.blueprint
pterosort.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I will leave this pull request here so you don't have as much work to do for implementing it as extension.
ATTENTION, this update will break existing configurations since the keys got changed to be matched with the keys used inside the ptero DB.
Since the script is now inside
dashboard/wrapper.blade.phpyou need to change your release logic to use this file and remove the<script>tag at the beginning and at the end of the file to be used with tapermonkey.So any future changes to your script should be made at the
wrapper.blade.phpfile.To create the blueprint extension file, just zip everything and name the zip file
pterosort.blueprint.When updating the script, you also need to change the version inside the
conf.ymlto the same version you use inside the script.I have changed both versions to 1.3.0 now to get them to the same version.
I also added a short explanation on how to install the extension to the readme.md.