Skip to content

Commit

Permalink
Update documentation and fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Atraxus committed Oct 8, 2024
1 parent 171212b commit f4626cf
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/releaseDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ jobs:
${{github.workspace}}/build/RAYX-*.tar.gz
if-no-files-found: error

- name: Extract version from tag
id: get_version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Archive source code
run: |
git archive HEAD --format=zip --output=${{github.workspace}}/build/RAYX-source-v${{env.version}}.zip
release:
name: Create Release
needs: build-and-release
Expand Down Expand Up @@ -176,5 +185,6 @@ jobs:
${{github.workspace}}/artifacts/ubuntu-artifacts/*.deb
${{github.workspace}}/artifacts/ubuntu-artifacts/*.rpm
${{github.workspace}}/artifacts/ubuntu-artifacts/*.tar.gz
${{github.workspace}}/artifacts/ubuntu-artifacts/RAYX-source-v${{env.version}}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.25.2 FATAL_ERROR)

# ---- Project ----
project(RAYX VERSION 0.21.41)
project(RAYX VERSION 0.21.3)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CUDA_STANDARD 20)
Expand Down
File renamed without changes.
132 changes: 132 additions & 0 deletions docs/src/Introduction/02-How-to-install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# How to Install

Welcome to the installation guide for RAYX! This section is a work in progress as we refine our release distribution. If you encounter any issues, we're here to help. Please open an issue on GitHub [here](https://github.com/hz-b/rayx/issues/new/choose). Your feedback helps us improve our documentation and installers based on real user experiences.

## Releases

You can find the latest releases of RAYX [here](https://github.com/hz-b/rayx/releases/tag/v0.21.2). Each release includes:

- **rayx-core**: The core library binary.
- **rayx**: Command-Line Interface (CLI) application.
- **rayx-ui**: Graphical User Interface (GUI) application.
- **Data Files**: Includes necessary data, shader, and font files.

## Dependencies

There are some dependencies that might not be handled by every distributed package, installer or archive. We give a general overview of missing dependencies you might encounter here.

### rayx-core

- [HDF5 Library](https://www.hdfgroup.org/download-hdf5/) for faster I/O operations.

### rayx-ui

- GPU driver from AMD, Intel, or NVIDIA.

## Installation Instructions

### Windows

We provide the following options for Windows:

- **Portable Version (.zip)**: No installation required. Just unzip and run.
- **Installer (.exe)**: An NSIS installer that guides you through the setup process.

**Note:** You may need to install the [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170).

### Linux

We offer several packages for Linux distributions:

- **Debian Package (.deb)**: For Debian-based systems like Ubuntu.
- **RPM Package (.rpm)**: For Red Hat-based systems like Fedora.
- **Tarball (.tar.gz)**: For other Linux systems. Intended for experienced users comfortable with manual installations.

#### Ubuntu (Debian-based Systems)

To install RAYX on Ubuntu:

1. **Download** the `.deb` package from the [releases page](https://github.com/hz-b/rayx/releases/tag/v0.21.2).

2. **Install** the package using:

```bash
sudo apt install ./rayx-ui_<version>_amd64.deb
```

Replace `<version>` with the actual version number.

3. **Install Dependencies**:

```bash
sudo apt-get install libhdf5-dev
```

#### Fedora (Red Hat-based Systems)

To install RAYX on Fedora:

1. **Download** the `.rpm` package from the [releases page](https://github.com/hz-b/rayx/releases/tag/v0.21.2).

2. **Install** the package using:

```bash
sudo dnf install rayx-ui-<version>.rpm
```

Replace `<version>` with the actual version number.

3. **Install Dependencies**:

```bash
sudo dnf install hdf5
```

#### Arch Linux

While we don't provide a native package for Arch Linux, you can use the tarball or build from source.

**Install Dependencies**:

```bash
sudo pacman -S hdf5
```

---

### Installing from Tarball (.tar.gz)

The tarball is intended for experienced users who prefer manual installation or are using a Linux distribution not directly supported by our `.deb` or `.rpm` packages.

**Steps**:

1. **Download** the `.tar.gz` file from the [releases page](https://github.com/hz-b/rayx/releases) or use the provided tarball.

2. **Extract** the tarball:

```bash
tar -xzf RAYX-<version>-Linux.tar.gz
```

This will create a directory named `RAYX-<version>-Linux`.

3. **Move** the extracted files to a directory of your choice (e.g., `/opt/rayx`):

```bash
sudo mv RAYX-<version>-Linux /opt/rayx
```

4. **Add to PATH** (optional):

```bash
echo 'export PATH=/opt/rayx/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
```

5. **Run RAYX** from the installation directory or after adding it to your PATH.

**Note:** Installing from a tarball does not handle dependencies automatically. You need to ensure all required dependencies are present on your system. Look at the previous sections for guidance.

---

If you have any questions or run into issues during installation, please don't hesitate to [open an issue on GitHub](https://github.com/hz-b/rayx/issues/new/choose). Your input is invaluable in helping us enhance our tools and documentation.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 7 additions & 5 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@


- [Introduction](./Introduction/01-Introduction.md)
- [Getting Started](./Introduction/02-Getting-Started.md)
- [RAYX Commands](./Introduction/03-How-to-use-rayx.md)
- [How to Build](./Introduction/02-How-to-build.md)
- [How to Build](./Introduction/02-How-to-install.md)
- [Getting Started](./Introduction/03-Getting-Started.md)
- [How to use RAYX-UI](./Introduction/04-How-to-use-rayx-ui.md)
- [How to Build](./Introduction/05-How-to-build.md)
- [Style Guide](./Introduction/06-Style-Guide.md)
- [Literature](./Introduction/07-Literature.md)
- [RAYX Commands](./Introduction/05-How-to-use-rayx.md)
- [Literature](./Introduction/06-Literature.md)
- [Style Guide](./Introduction/07-Style-Guide.md)

- [Model](./Model/Model.md)
- [Beamline Objects](./Model/BeamlineObjects/BeamlineObjects.md)
- [Optical Elements](./Model/BeamlineObjects/OpticalElements/OpticalElements.md)
Expand Down

0 comments on commit f4626cf

Please sign in to comment.