Skip to content

Commit efd3cf5

Browse files
committed
fix
1 parent bcbf342 commit efd3cf5

File tree

4 files changed

+17
-32
lines changed

4 files changed

+17
-32
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
sudo lua -e '
3030
require("metadata");
3131
local dkjson = require("dkjson");
32-
PLUGIN.download_url = "https://github.com/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.REPO_NAME }}_${{ env.VERSION }}.zip";
32+
PLUGIN.downloadUrl = "https://github.com/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.REPO_NAME }}_${{ env.VERSION }}.zip";
3333
local str = dkjson.encode(PLUGIN);
3434
print(str)' > manifest.json
3535
cat manifest.json
@@ -39,9 +39,9 @@ jobs:
3939
name: manifest
4040
path: manifest.json
4141
release-plugin-and-manifest:
42-
needs: generate-manifest-json
43-
runs-on: ubuntu-latest
44-
steps:
42+
needs: generate-manifest-json
43+
runs-on: ubuntu-latest
44+
steps:
4545
- name: Set repo name
4646
run: |
4747
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV
@@ -58,7 +58,7 @@ jobs:
5858
type: "zip"
5959
directory: "./"
6060
filename: "${{ env.REPO_NAME }}_${{ env.VERSION }}.zip"
61-
exclusions: "*.git* "
61+
exclusions: "*.git* manifest.json"
6262
- name: Publish release
6363
uses: svenstaro/upload-release-action@v2
6464
with:

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# vfox-plugin-template
1+
# vfox-nodejs
22

3-
This is a [vfox plugin](https://vfox.lhan.me/plugins/create/howto.html) template with CI that package and publish the plugin.
3+
Node.js plugin for [vfox](https://vfox.lhan.me/).
44

5-
## Usage
5+
## Install
66

7-
1. [Generate](https://github.com/version-fox/vfox-plugin-template/generate) a new repository based on this template.
8-
2. Configure [metadata](https://github.com/version-fox/vfox-plugin-template/blob/main/metadata.lua) information
9-
3. To develop your plugin further, please read [the plugins create section of the docs](https://vfox.lhan.me/plugins/create/howto.html).
7+
After installing [vfox](https://github.com/version-fox/vfox), install the plugin by running:
108

9+
```bash
10+
vfox install nodejs
11+
```
1112

12-
## How to publish?
13-
14-
1. Push a new tag to the repository which name is `vX.Y.Z` (X.Y.Z is the version number).
15-
2. The CI will automatically package, then publish [release](https://github.com/version-fox/vfox-plugin-template/releases/tag/v0.0.1) and publish [manifest](https://github.com/version-fox/vfox-plugin-template/releases/tag/manifest).

hooks/post_install.lua

Lines changed: 0 additions & 12 deletions
This file was deleted.

metadata.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ PLUGIN = {}
44
--- !!! MUST BE SET !!!
55
--- Plugin name
66
PLUGIN.name = "nodejs"
7-
--- Plugin author
8-
PLUGIN.author = "Aooohan"
97
--- Plugin version
108
PLUGIN.version = "0.0.4"
119
--- Plugin repository
1210
PLUGIN.homepage = "https://github.com/version-fox/vfox-nodejs"
1311
--- Plugin license
14-
PLUGIN.license = "MIT"
12+
PLUGIN.license = "Apache 2.0"
1513
--- Plugin description
16-
PLUGIN.description = "Node.js"
14+
PLUGIN.description = "Node.js runtime environment."
1715

1816
--- !!! OPTIONAL !!!
1917
-- minimum compatible vfox version
20-
PLUGIN.minRuntimeVersion = "0.2.2"
18+
PLUGIN.minRuntimeVersion = "0.2.6"
19+
-- Some things that need user to be attention!
20+
PLUGIN.notes = {}
2121

0 commit comments

Comments
 (0)