diff --git a/.drone.yml b/.drone.yml index 1b3e1e2..738a49e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,9 +52,6 @@ steps: base_url: https://git.froth.zone files: - dist/feditoken-* - checksum: - - md5 - - sha1 when: event: - tag \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e8927a1 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# JS-Feditoken + +[![Build Status](https://ci.git.froth.zone/api/badges/Sam/js-feditoken/status.svg)](https://ci.git.froth.zone/Sam/js-feditoken) + +Generating a token that can be used to botpost to the Fediverse. + +Compatible with Mastodon, Misskey, and Pleroma. + +## Usage +Download prebuilt binaries from [here](https://git.froth.zone/Sam/js-feditoken/releases/latest) (currently only supports x64), or build from source. + +### Building from source +1. Clone the repository. +2. Make sure you have `yarn` and `nodejs>=15.0.0` installed. +3. Run `yarn` to install dependencies. +4. Run `yarn build` to build the binaries. +5. Run `yarn token` to run get the tokens. \ No newline at end of file diff --git a/package.json b/package.json index 91c90c4..c6d7822 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,11 @@ "bin": "dist/token.js", "scripts": { "build": "yarn clean && tsc", - "package": "pkg dist/token.js -t node16-linux-x64,node16-macos-x64,node16-win-x64 -o dist/feditoken -C Gzip", "clean": "rm -rf dist", - "token": "node ./dist/token.js", "lint": "eslint --ext .ts src", - "test": "echo \"No tests yet!\" && exit 0" + "package": "pkg dist/token.js -t node16-linux-x64,node16-macos-x64,node16-win-x64 -o dist/feditoken-x64 -C Gzip", + "test": "echo \"No tests yet!\" && exit 0", + "token": "node ./dist/token.js" }, "repository": "https://git.froth.zone/Sam/js-feditoken", "author": "Sam Therapy ",