[ 
https://issues.apache.org/jira/browse/CAMEL-23478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151155#comment-18151155
 ] 

Claus Ibsen commented on CAMEL-23478:
-------------------------------------

[~ammachado] the camel-launcher now has web installers in 
dsl/camel-jbang/camel-launcher/src/install (install.sh and install.ps1, with 
self-update, LTS / X.Y selectors from CAMEL-26345 and nightly builds from 
CAMEL-26748). Does that cover this ticket, or is there something left, for 
example shipping the scripts in the distribution archive? If it is covered we 
can close it.

_Claude Code on behalf of davsclaus_

> Add install scripts to camel-launcher distribution archive
> ----------------------------------------------------------
>
>                 Key: CAMEL-23478
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23478
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>    Affects Versions: 4.20.0
>            Reporter: Federico Mariani
>            Assignee: Adriano Machado
>            Priority: Minor
>             Fix For: 4.x
>
>
> The camel-launcher distribution (zip/tar.gz) currently ships the JAR and run 
> scripts ({{camel.sh}}/{{camel.bat}}), but users must manually copy JARs, 
> create wrapper scripts, configure PATH, and handle platform-specific details 
> (e.g., macOS quarantine). This creates friction for new users and makes 
> upgrades error-prone.
> h3. Proposal
> Ship {{install.sh}} (Linux + macOS) and {{install.cmd}} (Windows) in the 
> distribution archive root. Running the installer automates the full setup:
> - Verifies Java 17+ is available
> - Copies the JAR to a canonical location ({{~/opt/camel/}} on Unix, 
> {{%LOCALAPPDATA%\Camel}} on Windows) with a stable name for easy upgrades
> - Creates a wrapper script in a standard user bin directory ({{~/bin/}} on 
> macOS, {{~/.local/bin/}} on Linux, {{%LOCALAPPDATA%\Camel}} on Windows)
> - Adds the bin directory to PATH if not already present
> - Detects existing JBang-based Camel installs and suggests cleanup
> - Handles re-runs for upgrades (replaces JAR, avoids duplicate PATH entries)



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to