Skip to content

Commit

Permalink
feat: Update paseto_cli version to 1.0.0-alpha.23 and refine platform…
Browse files Browse the repository at this point in the history
…-specific package name determination in install.js
  • Loading branch information
rrrodzilla committed Jul 25, 2024
1 parent 0b8fa9a commit 4ba9fbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "paseto_cli"
version = "1.0.0-alpha.22"
version = "1.0.0-alpha.23"
edition = "2021"
description = "A command-line tool for generating and validating PASETO v4.local tokens"
authors = ["Roland Rodriguez <roland@govcraft.ai>"]
Expand Down
5 changes: 2 additions & 3 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ const BINARY_DISTRIBUTION_PACKAGES = {
const BINARY_DISTRIBUTION_VERSION = process.env.BINARY_DISTRIBUTION_VERSION || '1.0.0-alpha.2'; // Default to a version if not set

// Windows binaries end with .exe so we need to special case them.
const binaryName = process.platform === "win32" ? "paseto_cli.exe" : "paseto_cli";
const binaryName = process.platform === 'win32' ? 'paseto_cli.exe' : 'paseto_cli';

// Determine package name for this platform
const platformSpecificPackageName =
BINARY_DISTRIBUTION_PACKAGES[process.platform];
const platformSpecificPackageName = BINARY_DISTRIBUTION_PACKAGES[`${process.platform}-${process.arch}`];

// Compute the path we want to emit the fallback binary to
const fallbackBinaryPath = path.join(__dirname, binaryName);
Expand Down

0 comments on commit 4ba9fbc

Please sign in to comment.