Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

cube-js/post-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easiest way to download files on post installation step of you npm package.

Usage example

  1. First you need to defineresources section under corespondingpackage.json file of your package.
{"resources": {"files": [{"host":"https://github.com/cube-js/cube/releases/download/v${version}/","path":"native-${platform}-${arch}-${libc}-${libpython_or_fallback}.tar.gz",        }]    }}

Additional

Constraints

Variables and files supports contstraints, you can define it:

  "constraints": {    "platform": [      "linux"    ],    "arch": [      "x64"    ]  }

Supported types:

  • platform:win32 /darwin /linux /aix /android /freebsd /openbsd /cygwin
  • arch:x64 /arm64
  • platform-arch:linux-x64, etc.

Variables

You can define and use variables inpath &host.

{"vars": {"libpython_or_fallback": {"default":"fallback","value": ["libpython",          ["3.11","3.10","3.9"          ]        ],"constraints": {"platform": ["linux"          ],"arch": ["x64"          ]        }      },"feature_or_default": {"default":"default","value": ["env","YOUR_ENV_NAME"        ]      }    },}

Next you can use this variable in the url via/file/${libpython_or_fallback}.tar.gz

LICENSE

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp