Skip to content

Conversation

@WojciechMazur
Copy link
Contributor

Backports #20351 to 3.5.0-RC2

fixes scala#20098

Proposed changes to zip/targz archive:
- in the `/bin` directory store an extra launcher for Scala CLI (either
JAR, or native per platform).
- `/bin/scala[.bat]` is modified to invoke Scala CLI stored in `/bin`
- new `/maven2` directory, which stores all the Jars and POM files
necessary (in maven repo style) for scala-cli to invoke scala compiler
offline (using the `-r` launcher option).
- CHOICE: either replace jar files in `/lib` by aliases to the
corresponding jar in `/maven2`, OR delete `/lib` and update references
from scripts. (Looks like symlinks are not portable, so probably we
should encode the classpath in a file, or adjust slightly how we build
the toolchain)
- add platform specific suffixes to artefacts:
- e.g. `scala-3.5.0-x86_64-pc-linux.tar.gz` (for the artefact that
bundles the x64 linux launcher)

---------

Co-authored-by: Hamza REMMAL <[email protected]>
@WojciechMazur WojciechMazur force-pushed the backport-3.5.0/20351 branch from 4834250 to 665bd20 Compare June 20, 2024 21:50
@WojciechMazur WojciechMazur merged commit 6fd3950 into scala:release-3.5.0 Jun 21, 2024
@WojciechMazur WojciechMazur deleted the backport-3.5.0/20351 branch June 21, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants