Commit graph

38 commits

Author SHA1 Message Date
1613737c26
chore(toolchainlib): remove token param from README 2024-12-10 22:12:47 +05:30
940ceea50f style: apply stylua formatter 2024-12-09 04:43:15 +00:00
80882fc173 feat(lib): remove reliance on semver parsing
Previously, we assumed that the tools followed semver, and hence parsed
their versions for comparison. Some tools may not follow semver, and we
should not impose such a requirement as a toolchain management library.

Therefore, we now only check if the requested version string matches an
asset version tag. In order to ensure backwards compatibility, we strip
the leading `v` from the version if present.
2024-12-09 03:34:05 +00:00
daimond113
c8488f169f
docs: symlink toolchainlib LICENSE 2024-12-08 18:21:06 +01:00
daimond113
e9c78bd0d5
chore: rename LICENSE.md to LICENSE 2024-12-08 18:10:04 +01:00
21d1b04ad4 chore(toolchainlib): fix grammar mistake in README 2024-12-01 12:19:19 +00:00
e46bb0f3ca feat(lib): make manifest decoding and access type-safe
Includes types to describe the shape of a pesde manifest and its
components.
2024-12-01 12:15:57 +00:00
be9790e590 chore(lib): include description in package manifest 2024-12-01 05:38:40 +00:00
cca939e355 fix(lib): remove duplicate version defaulting code 2024-12-01 05:35:58 +00:00
97cc64bc81 fix(lib): don't panic on bad descriptor for binary 2024-12-01 05:34:29 +00:00
039b4619a4 chore(bins): bump toolchainlib and update luau-lsp 2024-12-01 05:30:59 +00:00
46df227f26 chore(lib): bump version 2024-12-01 05:29:59 +00:00
5b1a25bd53 feat(lib): relocate GithubReleases type and implement custom payload
* Also breaks down `GithubReleases` into array of `GithubRelease` type
* Adds a `Custom` operation type for internal `Github` class, allowing
  user to mention custom request data
2024-11-30 18:29:36 +00:00
0dfb7ecc31 chore(bins): bump blink to 0.15.0-rc.1
Also refreshes lockfile cache for all workspace members.
2024-11-30 05:53:56 +00:00
828339feaa fix(lib): fix exec detection fallthrough
If the executable was invalid, and wasn't PE or ELF, it would fall
through into the Mach-O case, which was a false positive.
2024-11-28 17:48:57 +00:00
40e8cfe71a chore(lib): bump version 2024-11-28 16:37:01 +00:00
e396b070c5 fix(lib): bad chmod mode value
In this previous commit, it was setting mode to base-10 755, which is
equivalent to octal 1363, being an invalid mode.
2024-11-28 16:31:20 +00:00
8cf8d8e916 feat(lib): use different tool_storage structure, chmod on unix
* Fix for tools which don't already provide zips with binaries that have
  their executable bit set, by executing chmod before attempting to run.
* Uses a different tool_storage structure to prevent changing the tool
  name and causing confusion for tools which change their help menu
  binary name based on the current exe name.
2024-11-28 16:08:15 +00:00
17f27a009e chore(lib): fix powered by lune badge 2024-11-26 13:04:01 +05:30
11f7c17944 chore(lib/README): update pesde badge to include version from manifest 2024-11-25 21:32:42 +05:30
0b75114091 chore(lib): include README 2024-11-25 15:25:21 +00:00
cf3bac5d41 revert: Expand-Archive cmdlet displaying prog
Reverts 694430b768.
2024-11-25 12:04:22 +00:00
5ff9e8b7c5 fix(lib): Expand-Archive cmdlet displaying prog 2024-11-25 11:55:47 +00:00
21c4a0b9cf style: apply formatting to all files 2024-11-25 11:47:56 +00:00
ca881272be fix(lib): forward pwsh stdout on windows debug 2024-11-25 11:45:07 +00:00
95afc33630 fix(lib): bad argument to Start-Process cmdlet 2024-11-25 11:43:15 +00:00
3a65776a3c fix(lib): decompression on windows
* Decompression on windows failed since the `Start-Process` cmdlet exited
  immediately after spawning the process. Fixed by including the `-Wait`
  argument.
* We were using `unzip` on all platforms, and it does not exist on
  Windows. Instead, now we use the `Expand-Archive` cmdlet for
  decompression on windows.
2024-11-25 11:24:18 +00:00
b6f75cbda9 fix(lib): binary descriptor fallback not matching
* Fixes a bug which caused binary parsing fallbacks to not work as
  expected, due to a field unexpectedly being `None`.
* Fixed lint error to do with warn being potentially none by defining
  our own warn function instead. Also updated fallback binary parsing
  fallback warn message to be clearer.
* Fixed decompression error for non-supported artifacts by only
  decompressing those we support.
2024-11-25 08:10:05 +00:00
9dd820d804 chore(lune): include lune dev scripts
* Adds dev lune scripts to execute tooling in dev env, also a nice way
  to dogfood the project.
* Disables all lints in luaurc temporarily, since luau-lsp analysis displays
  lint errors even for ignored files for some reason.
* Fixes a few `TypeError`s.
2024-11-25 06:23:39 +00:00
7b03d8cd4b chore(lib): update included license path 2024-11-24 18:06:09 +00:00
03e60700a3 chore(LICENSE): remove non-markdown licenses 2024-11-24 17:59:02 +00:00
d28408fc12 chore(LICENSE): rename to include markdown ext 2024-11-24 17:10:41 +00:00
ce6345443a chore(pkg): update pesde manifests
* stylua: Fixed pesde manifest description
* lib: Explicitly defined includes
* lib: Symlink root license into dir
2024-11-24 15:24:19 +00:00
0a8f8bc5d2 feat: move all install path logic into __call
Also does this following:
* Properly types metatable return
* Runs tool after installation, previously the tool would not get
  executed post installation
* Further removal of manual alias handling
2024-11-23 17:30:46 +00:00
ab86b381f4 feat(lib): offload all linking logic to pesde 2024-11-23 16:53:12 +00:00
b6d234977f fix(lib): TypeErrors in shorthand constructor 2024-11-23 16:01:44 +00:00
a66bc94eb7 feat: use dev mode based on env var 2024-11-23 15:59:22 +00:00
94706f8a9d refactor: restructure repo
* Restructures monorepo packages
* Updated pesde manifests with scope and other metadata
* Consolidated all interactive install logic into __call metamethod for
  one liner bin re-exports
* Renamed binlib->toolchainlib
* Introduced first real world package - stylua (!!)
2024-11-23 14:35:23 +00:00