Unverified Commit 1ac72062 authored by Hong Minhee's avatar Hong Minhee
Browse files

Pre-built executables of Fedify CLI

parent cd9facaa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -108,6 +108,8 @@ jobs:
    - run: 'deno task dnt "$(jq -r .version deno.json)"'
    - run: npm pack
      working-directory: ${{ github.workspace }}/npm/
    - run: deno task pack
      working-directory: ${{ github.workspace }}/cli/
    - id: extract-changelog
      uses: dahlia/submark@5a5ff0a58382fb812616a5801402f5aef00f90ce
      with:
@@ -124,7 +126,9 @@ jobs:
      with:
        body_path: ${{ steps.extract-changelog.outputs.output-file }}
        name: Fedify ${{ github.ref_name }}
        files: npm/*.tgz
        files:
          npm/*.tgz
          cli/fedify-cli-*
        generate_release_notes: false
        discussion_category_name: Announcements
    - if: |

cli/.gitignore

0 → 100644
+2 −0
Original line number Diff line number Diff line
fedify-cli-*.tar.xz
fedify-cli-*.zip
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
    }
  },
  "cSpell.words": [
    "aarch64",
    "codegen",
    "Deno",
    "denokv",
@@ -44,6 +45,7 @@
    "hono",
    "httpsig",
    "logtape",
    "msvc",
    "nodeinfo",
    "poppanator",
    "shiki",
+21 −13
Original line number Diff line number Diff line
@@ -13,26 +13,34 @@ it can be used with any ActivityPub-enabled server.
Installation
------------

First of all, you need to install [Deno] if you haven't already.  You can
install Deno by running the following command:
### Using Deno

If you have [Deno] installed, you can install `fedify` by running the following
command:

~~~~ sh
curl -fsSL https://deno.land/install.sh | sh  # Linux/macOS
# Linux/macOS
deno install \
  -A \
  --unstable-fs --unstable-kv --unstable-temporal \
  -n fedify \
  jsr:@fedify/cli
~~~~

~~~~ powershell
irm https://deno.land/install.ps1 | iex  # Windows
# Windows
deno install `
  -A `
  --unstable-fs --unstable-kv --unstable-temporal `
  -n fedify `
  jsr:@fedify/cli
~~~~

> [!TIP]
> If you are doubtful about running scripts from the internet, there are
> additional installation options available on the [Deno installation] docs.
[Deno]: https://deno.com/

After installing Deno, you can install `fedify` by running the below command:
### Downloading the executable

~~~~ sh
deno install -A -n fedify jsr:@fedify/cli
~~~~
You can download the pre-built executables from the [releases] page.  Download
the appropriate executable for your platform and put it in your `PATH`.

[Deno]: https://deno.com/
[Deno installation]: https://docs.deno.com/runtime/manual/getting_started/installation
[releases]: https://github.com/dahlia/fedify/releases
+4 −2
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@
  },
  "exclude": [
    ".vscode",
    "scripts"
    "fedify-cli-*.tar.xz",
    "fedify-cli-*.zip"
  ],
  "unstable": [
    "fs",
@@ -23,6 +24,7 @@
    "codegen": "deno task fedify-codegen && deno task generate-import-map && deno task sync-version",
    "run": "deno task codegen && deno run --allow-all mod.ts",
    "publish": "deno task codegen && deno task generate-import-map --release && deno publish",
    "publish-dry-run": "deno task codegen && deno publish --dry-run --allow-dirty"
    "publish-dry-run": "deno task codegen && deno publish --dry-run --allow-dirty",
    "pack": "deno task codegen && deno run -A scripts/pack.ts"
  }
}
Loading