Compare commits

..

No commits in common. "master" and "2.1.2" have entirely different histories.

4 changed files with 671 additions and 553 deletions

View file

@ -10,7 +10,7 @@ local pipe(arch) = {
name: 'deps',
image: 'node',
commands: [
'corepack enable && pnpm config set store-dir .cache/pnpm',
'curl -L https://pnpm.js.org/pnpm.js | node - add --global pnpm@7',
'pnpm i',
],
},
@ -61,7 +61,7 @@ local release(arch) = {
name: 'build',
image: 'node:lts',
commands: [
'corepack enable && pnpm config set store-dir .cache/pnpm',
'curl -L https://pnpm.js.org/pnpm.js | node - add --global pnpm@7',
'pnpm i',
'pnpm build',
],

View file

@ -18,30 +18,8 @@ The full list of boorus supported is found [here](https://github.com/AtoraSuunva
There are currently three ways to do this, a pre-built binary that bundles in node, from npm, or building from source. Both are listed below.
### From NPM
1. Set up using the [Gitea registry](https://git.froth.zone/sam/fediverse-imagebot/packages)
```sh
npm config set @froth:registry https://git.froth.zone/api/packages/sam/npm/
```
2. After setting up the registry, either run it once
```sh
npx --package=@froth/fediverse-imagebot fediverse-imagebot
```
or install globally
```sh
npm i -g @froth/fediverse-imagebot
```
### Downloading pre-built binaries
#### NOTE: This is no longer supported since vercel/pkg is broken
Download prebuilt binaries from [here](https://git.froth.zone/sam/fediverse-imagebot/releases/latest). (currently supports x86_64 and arm64 on Linux
[glibc or musl], macOS and Windows)
@ -50,6 +28,20 @@ Download prebuilt binaries from [here](https://git.froth.zone/sam/fediverse-imag
- If you want to generate a key you can use <https://git.froth.zone/sam/js-feditoken>
3. Run the bot by launching the executable!
### From NPM
1. Set up using the [Gitea registry](https://git.froth.zone/sam/fediverse-imagebot/packages)
```sh
npm config set @froth:registry https://git.froth.zone/api/packages/sam/npm/
```
2. After setting up the registry, either install it permanently
```sh
npx --package=@froth/feditoken feditoken
```
### Running from Source
1. You need to have `npm` and `nodejs` installed.

View file

@ -2,10 +2,10 @@
"dependencies": {
"booru": "2.6.3",
"command-line-args": "5.2.1",
"command-line-usage": "7.0.1",
"got": "12.6.1",
"json5": "2.2.3",
"megalodon": "6.0.2",
"command-line-usage": "6.1.3",
"got": "12.5.3",
"json5": "2.2.2",
"megalodon": "5.0.1",
"p-retry": "5.1.2"
},
"name": "@froth/fediverse-imagebot",
@ -32,16 +32,16 @@
"devDependencies": {
"@types/command-line-args": "5.2.0",
"@types/command-line-usage": "5.0.2",
"@types/http-cache-semantics": "4.0.1",
"@types/node": "18.16.16",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.7",
"eslint": "8.41.0",
"eslint-config-prettier": "8.8.0",
"@types/http-cache-semantics": "^4.0.1",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.47.1",
"@typescript-eslint/parser": "5.47.1",
"eslint": "8.30.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
"pkg": "5.8.1",
"prettier": "2.8.8",
"typescript": "5.0.4"
"pkg": "5.8.0",
"prettier": "2.8.1",
"typescript": "4.9.4"
},
"files": [
"dist"

File diff suppressed because it is too large Load diff