Skip to content

Commit 67a5843

Browse files
committed
Ubuntu build instructions.
1 parent 392f54a commit 67a5843

File tree

2 files changed

+107
-4
lines changed

2 files changed

+107
-4
lines changed

README.md

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,72 @@ It uses a deep learning–based denoising model designed to preserve fine image
3131

3232
---
3333

34-
## Installation
34+
## Installation
35+
36+
### Build from source from git (linux):
37+
38+
Clone the repository, enter the RawRefinery directory and install locally with pip. I recommend setting up a python 3.11 virtual environment, conda environment, or the equivalent.
39+
40+
#### Install required libraries
41+
sudo apt install python3 python3.12-venv build-essential python3-dev spice-vdagent qemu-guest-agent, upx-ucl
42+
43+
44+
```bash
45+
sudo apt install python3 python3.12-venv build-essential python3-dev
46+
git clone https://github.com/rymuelle/RawRefinery.git
47+
cd RawRefinery
48+
python3 -m venv .venv
49+
. .venv/bin/activate
50+
python3 -m pip install .
51+
```
52+
After this step, you can run the program as:
53+
54+
```bash
55+
python3 main.py
56+
```
57+
58+
However, if you wish to build an installable applicaiton, you may use pyinstaller. Still in the RawRefinery top level directory:
59+
60+
```bash
61+
python3 -m pip install pyinstaller
62+
# Clean up previous builds
63+
rm -rf build dist __pycache__
64+
pyinstaller linux.spec
65+
```
66+
67+
68+
# To build .deb
69+
sudo apt update
70+
sudo apt install ruby ruby-dev build-essential
71+
sudo gem install --no-document fpm
72+
73+
74+
```
75+
mkdir -p staging/opt/RawRefinery
76+
mkdir -p staging/usr/share/applications
77+
cp -r dist/RawRefinery/* staging/opt/RawRefinery/
78+
cp linux/RawRefinery.desktop staging/usr/share/applications/RawRefinery.desktop
79+
fpm -n rawrefinery -v 1.0.0 --description "A PySide6 application for Raw Data Processing." \
80+
-t deb -s dir \
81+
-C staging \
82+
--url "http://example.com/rawrefinery" \
83+
--vendor "Ryan Mueller" \
84+
--license "MIT" \
85+
.
86+
```
87+
88+
```bash
89+
sudo dpkg -i rawrefinery_1.0.0_amd64.deb
90+
```
91+
92+
### Download prebuilt installer (Mac OS Only, Windows and Linux executables coming soon)
3593

3694
Download the macOS build here:
3795
[**RawRefinery v1.3.0-alpha**](https://github.com/rymuelle/RawRefinery/releases/download/v1.3.0-alpha)
3896

39-
Windows and Linux versions are coming soon, along with setup instructions for building from source.
40-
4197
---
4298

43-
## 🚀 Usage
99+
## Usage
44100

45101
1. **First launch:**
46102
On first run, the app will download the denoising model (~500 MB).

linux.spec

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
datas = [
4+
('RawRefinery/verify/model_signing_public_key.pem', 'RawRefinery/verify')
5+
]
6+
7+
a = Analysis(
8+
['main.py'],
9+
pathex=[],
10+
binaries=[],
11+
datas=datas,
12+
hiddenimports=[],
13+
hookspath=[],
14+
hooksconfig={},
15+
runtime_hooks=[],
16+
excludes=[],
17+
noarchive=False,
18+
optimize=0,
19+
)
20+
pyz = PYZ(a.pure)
21+
22+
exe = EXE(
23+
pyz,
24+
a.scripts,
25+
[],
26+
exclude_binaries=True,
27+
name='RawRefinery',
28+
debug=False,
29+
bootloader_ignore_signals=False,
30+
strip=False,
31+
upx=True,
32+
console=True,
33+
disable_windowed_traceback=False,
34+
argv_emulation=False,
35+
target_arch=None,
36+
codesign_identity=None,
37+
entitlements_file=None,
38+
)
39+
coll = COLLECT(
40+
exe,
41+
a.binaries,
42+
a.datas,
43+
strip=False,
44+
upx=True,
45+
upx_exclude=[],
46+
name='RawRefinery',
47+
)

0 commit comments

Comments
 (0)