From c3ee173f8c466c9bb1b9c4e1a0e0359630e2a475 Mon Sep 17 00:00:00 2001 From: David Suarez <1847875+dave92082@users.noreply.github.com> Date: Fri, 27 Nov 2020 16:10:07 -0800 Subject: [PATCH 1/5] Update go.yml --- .github/workflows/go.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 688078f..728cb6d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,12 +11,10 @@ jobs: name: release linux/amd64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: compile and release - uses: ngs/go-release.action@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GOARCH: amd64 - GOOS: linux - EXTRA_FILES: "README.md LICENSE" + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.11 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: linux + goarch: amd64 From 6341e37be9988cb08353ac077a67dfe445d4429b Mon Sep 17 00:00:00 2001 From: David Suarez <1847875+dave92082@users.noreply.github.com> Date: Fri, 27 Nov 2020 16:17:51 -0800 Subject: [PATCH 2/5] Add extra files --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 728cb6d..41dc76d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,4 +17,5 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} goos: linux goarch: amd64 + extra_files: LICENSE README.md From 14936f165b49828121059a3ed4dd551db997a58b Mon Sep 17 00:00:00 2001 From: David Suarez <1847875+dave92082@users.noreply.github.com> Date: Fri, 27 Nov 2020 16:20:08 -0800 Subject: [PATCH 3/5] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2be43cd --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 David Suarez + +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. From ae7736652bd58eb31eb27daf864c5fa6c20a87b6 Mon Sep 17 00:00:00 2001 From: David Suarez <1847875+dave92082@users.noreply.github.com> Date: Fri, 27 Nov 2020 16:23:41 -0800 Subject: [PATCH 4/5] Update go.yml --- .github/workflows/go.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 41dc76d..5587e80 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,10 +1,8 @@ name: Go -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: + release: + types: [created] jobs: release-linux-amd64: From 20d0457e24c751ef854482dfc971520820cdee82 Mon Sep 17 00:00:00 2001 From: David Suarez <1847875+dave92082@users.noreply.github.com> Date: Fri, 27 Nov 2020 16:29:18 -0800 Subject: [PATCH 5/5] Update README.md --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 776b2de..24d9556 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,15 @@ In the future I may try to add an auto-detection of this. For now this was quick ## Running the tool Once you have NodeJS set up, simply download the bs-patch tool from the Releases section -of this repository and execute it: +of this repository, create your config.yaml file, and then execute the tool: + +1. Download the release +2. Extract the bs-patch binary +3. Execute `which npm` +4. Copy the path to the `bin` folder +5. Create a file named `config.yaml` in the same folder as the `bs-patch` binary +6. Execute `./bs-patch` +7. (hopefully) Enjoy your new BluOS Controller app on Linux ``` $ ./bs-patch @@ -58,4 +66,4 @@ INFO[0038] Building Snap and AppImage INFO[0046] Cleaning up ``` -A new folder named `dist` will be created and contain the Snap and AppImage files. Enjoy! \ No newline at end of file +A new folder named `dist` will be created and contain the Snap and AppImage files. Enjoy!