Skip to content

Commit f4626cf

Browse files
committed
Update documentation and fix release
1 parent 171212b commit f4626cf

File tree

9 files changed

+150
-6
lines changed

9 files changed

+150
-6
lines changed

.github/workflows/releaseDeploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ jobs:
146146
${{github.workspace}}/build/RAYX-*.tar.gz
147147
if-no-files-found: error
148148

149+
- name: Extract version from tag
150+
id: get_version
151+
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
152+
153+
- name: Archive source code
154+
run: |
155+
git archive HEAD --format=zip --output=${{github.workspace}}/build/RAYX-source-v${{env.version}}.zip
156+
157+
149158
release:
150159
name: Create Release
151160
needs: build-and-release
@@ -176,5 +185,6 @@ jobs:
176185
${{github.workspace}}/artifacts/ubuntu-artifacts/*.deb
177186
${{github.workspace}}/artifacts/ubuntu-artifacts/*.rpm
178187
${{github.workspace}}/artifacts/ubuntu-artifacts/*.tar.gz
188+
${{github.workspace}}/artifacts/ubuntu-artifacts/RAYX-source-v${{env.version}}.zip
179189
env:
180190
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.25.2 FATAL_ERROR)
22

33
# ---- Project ----
4-
project(RAYX VERSION 0.21.41)
4+
project(RAYX VERSION 0.21.3)
55
set(CMAKE_CXX_STANDARD 23)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_CUDA_STANDARD 20)
File renamed without changes.
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# How to Install
2+
3+
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.
4+
5+
## Releases
6+
7+
You can find the latest releases of RAYX [here](https://github.com/hz-b/rayx/releases/tag/v0.21.2). Each release includes:
8+
9+
- **rayx-core**: The core library binary.
10+
- **rayx**: Command-Line Interface (CLI) application.
11+
- **rayx-ui**: Graphical User Interface (GUI) application.
12+
- **Data Files**: Includes necessary data, shader, and font files.
13+
14+
## Dependencies
15+
16+
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.
17+
18+
### rayx-core
19+
20+
- [HDF5 Library](https://www.hdfgroup.org/download-hdf5/) for faster I/O operations.
21+
22+
### rayx-ui
23+
24+
- GPU driver from AMD, Intel, or NVIDIA.
25+
26+
## Installation Instructions
27+
28+
### Windows
29+
30+
We provide the following options for Windows:
31+
32+
- **Portable Version (.zip)**: No installation required. Just unzip and run.
33+
- **Installer (.exe)**: An NSIS installer that guides you through the setup process.
34+
35+
**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).
36+
37+
### Linux
38+
39+
We offer several packages for Linux distributions:
40+
41+
- **Debian Package (.deb)**: For Debian-based systems like Ubuntu.
42+
- **RPM Package (.rpm)**: For Red Hat-based systems like Fedora.
43+
- **Tarball (.tar.gz)**: For other Linux systems. Intended for experienced users comfortable with manual installations.
44+
45+
#### Ubuntu (Debian-based Systems)
46+
47+
To install RAYX on Ubuntu:
48+
49+
1. **Download** the `.deb` package from the [releases page](https://github.com/hz-b/rayx/releases/tag/v0.21.2).
50+
51+
2. **Install** the package using:
52+
53+
```bash
54+
sudo apt install ./rayx-ui_<version>_amd64.deb
55+
```
56+
57+
Replace `<version>` with the actual version number.
58+
59+
3. **Install Dependencies**:
60+
61+
```bash
62+
sudo apt-get install libhdf5-dev
63+
```
64+
65+
#### Fedora (Red Hat-based Systems)
66+
67+
To install RAYX on Fedora:
68+
69+
1. **Download** the `.rpm` package from the [releases page](https://github.com/hz-b/rayx/releases/tag/v0.21.2).
70+
71+
2. **Install** the package using:
72+
73+
```bash
74+
sudo dnf install rayx-ui-<version>.rpm
75+
```
76+
77+
Replace `<version>` with the actual version number.
78+
79+
3. **Install Dependencies**:
80+
81+
```bash
82+
sudo dnf install hdf5
83+
```
84+
85+
#### Arch Linux
86+
87+
While we don't provide a native package for Arch Linux, you can use the tarball or build from source.
88+
89+
**Install Dependencies**:
90+
91+
```bash
92+
sudo pacman -S hdf5
93+
```
94+
95+
---
96+
97+
### Installing from Tarball (.tar.gz)
98+
99+
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.
100+
101+
**Steps**:
102+
103+
1. **Download** the `.tar.gz` file from the [releases page](https://github.com/hz-b/rayx/releases) or use the provided tarball.
104+
105+
2. **Extract** the tarball:
106+
107+
```bash
108+
tar -xzf RAYX-<version>-Linux.tar.gz
109+
```
110+
111+
This will create a directory named `RAYX-<version>-Linux`.
112+
113+
3. **Move** the extracted files to a directory of your choice (e.g., `/opt/rayx`):
114+
115+
```bash
116+
sudo mv RAYX-<version>-Linux /opt/rayx
117+
```
118+
119+
4. **Add to PATH** (optional):
120+
121+
```bash
122+
echo 'export PATH=/opt/rayx/bin:$PATH' >> ~/.bashrc
123+
source ~/.bashrc
124+
```
125+
126+
5. **Run RAYX** from the installation directory or after adding it to your PATH.
127+
128+
**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.
129+
130+
---
131+
132+
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.

docs/src/SUMMARY.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33

44
- [Introduction](./Introduction/01-Introduction.md)
5-
- [Getting Started](./Introduction/02-Getting-Started.md)
6-
- [RAYX Commands](./Introduction/03-How-to-use-rayx.md)
5+
- [How to Build](./Introduction/02-How-to-build.md)
6+
- [How to Build](./Introduction/02-How-to-install.md)
7+
- [Getting Started](./Introduction/03-Getting-Started.md)
78
- [How to use RAYX-UI](./Introduction/04-How-to-use-rayx-ui.md)
8-
- [How to Build](./Introduction/05-How-to-build.md)
9-
- [Style Guide](./Introduction/06-Style-Guide.md)
10-
- [Literature](./Introduction/07-Literature.md)
9+
- [RAYX Commands](./Introduction/05-How-to-use-rayx.md)
10+
- [Literature](./Introduction/06-Literature.md)
11+
- [Style Guide](./Introduction/07-Style-Guide.md)
12+
1113
- [Model](./Model/Model.md)
1214
- [Beamline Objects](./Model/BeamlineObjects/BeamlineObjects.md)
1315
- [Optical Elements](./Model/BeamlineObjects/OpticalElements/OpticalElements.md)

0 commit comments

Comments
 (0)