purplesquirrelnetworks commited on
Commit
bfe217a
Β·
verified Β·
1 Parent(s): 7a45673

Upload documentation/INSTALL.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. documentation/INSTALL.md +175 -0
documentation/INSTALL.md ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # πŸš€ Coldstar - Quick Installation Guide
2
+
3
+ ## One-Command Installation
4
+
5
+ ### Windows (PowerShell)
6
+
7
+ Open PowerShell and run:
8
+
9
+ ```powershell
10
+ powershell -ExecutionPolicy Bypass -File install.ps1
11
+ ```
12
+
13
+ Or if you need to allow script execution first:
14
+
15
+ ```powershell
16
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
17
+ .\install.ps1
18
+ ```
19
+
20
+ ### macOS
21
+
22
+ Open Terminal and run:
23
+
24
+ ```bash
25
+ chmod +x install.sh && ./install.sh
26
+ ```
27
+
28
+ **Note:** On macOS, the installer uses Homebrew to install Python if needed. If you don't have Homebrew, the script will prompt you to install it first.
29
+
30
+ ### Linux
31
+
32
+ Open Terminal and run:
33
+
34
+ ```bash
35
+ chmod +x install.sh && ./install.sh
36
+ ```
37
+
38
+ ---
39
+
40
+ ## What Gets Installed
41
+
42
+ The installation script automatically:
43
+
44
+ 1. βœ… **Checks for Python 3.7+** - Installs if missing
45
+ 2. βœ… **Checks for Rust/Cargo** - Installs if missing
46
+ 3. βœ… **Installs Python dependencies** - From requirements files
47
+ 4. βœ… **Builds Rust components** - Compiles secure_signer
48
+ 5. βœ… **Verifies everything works** - Runs health checks
49
+
50
+ ---
51
+
52
+ ## Manual Installation (Advanced)
53
+
54
+ If the automatic installer doesn't work for your system:
55
+
56
+ ### 1. Install Python
57
+
58
+ **Windows:**
59
+ ```powershell
60
+ winget install Python.Python.3.12
61
+ ```
62
+
63
+ **macOS:**
64
+ ```bash
65
+ brew install python3
66
+ ```
67
+
68
+ **Linux (Ubuntu/Debian):**
69
+ ```bash
70
+ sudo apt-get update
71
+ sudo apt-get install python3 python3-pip
72
+ ```
73
+
74
+ ### 2. Install Rust
75
+
76
+ **All platforms:**
77
+ ```bash
78
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
79
+ ```
80
+
81
+ Or visit: https://rustup.rs/
82
+
83
+ ### 3. Install Dependencies
84
+
85
+ ```bash
86
+ pip install -r local_requirements.txt
87
+ ```
88
+
89
+ ### 4. Build Rust Components
90
+
91
+ ```bash
92
+ cd secure_signer
93
+ cargo build --release
94
+ cd ..
95
+ ```
96
+
97
+ ---
98
+
99
+ ## After Installation
100
+
101
+ Run the application:
102
+
103
+ ```bash
104
+ python main.py
105
+ ```
106
+
107
+ Or use the quickstart script:
108
+
109
+ **Windows:**
110
+ ```powershell
111
+ .\quickstart.ps1
112
+ ```
113
+
114
+ **Linux/macOS:**
115
+ ```bash
116
+ ./quickstart.sh
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Troubleshooting
122
+
123
+ ### Python Not Found After Installation
124
+
125
+ **Windows:** Restart PowerShell or run:
126
+ ```powershell
127
+ $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
128
+ ```
129
+
130
+ **Linux/macOS:** Restart terminal or run:
131
+ ```bash
132
+ source ~/.bashrc # or ~/.zshrc for macOS
133
+ ```
134
+
135
+ ### Cargo Not Found After Installation
136
+
137
+ **All platforms:** Run:
138
+ ```bash
139
+ source $HOME/.cargo/env
140
+ ```
141
+
142
+ ### Permission Denied (Linux/macOS)
143
+
144
+ Make sure the script is executable:
145
+ ```bash
146
+ chmod +x install.sh
147
+ ```
148
+
149
+ ### winget Not Available (Windows)
150
+
151
+ Install Windows Package Manager from the Microsoft Store, or manually download Python and Rust from:
152
+ - Python: https://www.python.org/downloads/
153
+ - Rust: https://rustup.rs/
154
+
155
+ ---
156
+
157
+ ## System Requirements
158
+
159
+ - **OS:** Windows 10+, macOS 10.15+, Linux (any modern distro)
160
+ - **Disk Space:** ~2GB (for all dependencies)
161
+ - **Internet:** Required for initial download of dependencies
162
+
163
+ ---
164
+
165
+ ## Support
166
+
167
+ If you encounter issues:
168
+
169
+ 1. Check the error messages - they usually indicate what's missing
170
+ 2. Try the manual installation steps above
171
+ 3. Open an issue on GitHub with your OS and error details
172
+
173
+ ---
174
+
175
+ **Enjoy using Coldstar! 🌟**