Skip to content

Commit

Permalink
chore: release executable file (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
danewalters authored May 10, 2024
1 parent d95f735 commit 8cb4f0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
run: |
for i in x86_64-unknown-linux-gnu x86_64-apple-darwin aarch64-apple-darwin aarch64-unknown-linux-gnu
do
deno compile -A --target $i -o jcli main.ts
tar -czf jcli-$i.tar.gz --remove-files jcli
deno compile -A --target $i -o jcli-$i main.ts
tar -czf jcli-$i.tar.gz jcli-$i
done
- name: Release jcli
Expand All @@ -33,3 +33,7 @@ jobs:
jcli-x86_64-apple-darwin.tar.gz
jcli-aarch64-apple-darwin.tar.gz
jcli-aarch64-unknown-linux-gnu.tar.gz
jcli-x86_64-unknown-linux-gnu
jcli-x86_64-apple-darwin
jcli-aarch64-apple-darwin
jcli-aarch64-unknown-linux-gnu
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Command, CompletionsCommand } from "cliffy-command";

import { version } from "./deno.json" with { type: "json" };
import denoJson from "./deno.json" with { type: "json" };

import { getConfig } from "@/api/mod.ts";
import { setupLogger } from "@/jcli/logger.ts";
Expand Down Expand Up @@ -29,7 +29,7 @@ const upgradeCommand = await createUpgradeCommand();

await new Command()
.name("jcli")
.version(version)
.version(denoJson.version)
.description("Jet command-line tool")
.globalOption("-d, --debug", "Enable debug output.", {
action: globalOptionAction,
Expand Down

0 comments on commit 8cb4f0c

Please sign in to comment.