rapay 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.js +18 -2
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -12,9 +12,23 @@ const path = require('path');
|
|
|
12
12
|
const https = require('https');
|
|
13
13
|
const os = require('os');
|
|
14
14
|
|
|
15
|
-
const VERSION = '1.0.
|
|
15
|
+
const VERSION = '1.0.7'; // CDN binary version (npm package version may differ)
|
|
16
16
|
const CDN_BASE = 'https://cdn.rapay.ai';
|
|
17
17
|
|
|
18
|
+
// Optic Yellow (#CCFF00) ANSI escape code
|
|
19
|
+
const OPTIC_YELLOW = '\x1b[38;2;204;255;0m';
|
|
20
|
+
const RESET = '\x1b[0m';
|
|
21
|
+
|
|
22
|
+
// Pixelated RA PAY logo (matches CLI logo.rs)
|
|
23
|
+
const LOGO = `
|
|
24
|
+
██████╗ █████╗ ██████╗ █████╗ ██╗ ██╗
|
|
25
|
+
██╔══██╗██╔══██╗ ██╔══██╗██╔══██╗╚██╗ ██╔╝
|
|
26
|
+
██████╔╝███████║ ██████╔╝███████║ ╚████╔╝
|
|
27
|
+
██╔══██╗██╔══██║ ██╔═══╝ ██╔══██║ ╚██╔╝
|
|
28
|
+
██║ ██║██║ ██║ ██║ ██║ ██║ ██║
|
|
29
|
+
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
|
|
30
|
+
`;
|
|
31
|
+
|
|
18
32
|
// Platform/arch to binary name mapping
|
|
19
33
|
// NOTE: linux-arm64 not supported yet (keyring native libs don't cross-compile)
|
|
20
34
|
const BINARY_MAP = {
|
|
@@ -194,13 +208,15 @@ async function install() {
|
|
|
194
208
|
}
|
|
195
209
|
|
|
196
210
|
console.log('');
|
|
211
|
+
console.log(OPTIC_YELLOW + LOGO + RESET);
|
|
197
212
|
console.log('Ra Pay CLI installed successfully!');
|
|
198
|
-
console.log('Run "ra --help" to get started.');
|
|
199
213
|
console.log('');
|
|
200
214
|
console.log('Quick start:');
|
|
201
215
|
console.log(' ra link-bank Connect your Stripe account');
|
|
202
216
|
console.log(' ra balance Check your balance');
|
|
203
217
|
console.log(' ra send Send payments');
|
|
218
|
+
console.log('');
|
|
219
|
+
console.log('Run "ra --help" for all commands.');
|
|
204
220
|
} catch (error) {
|
|
205
221
|
console.error('');
|
|
206
222
|
console.error('Failed to install Ra Pay CLI:', error.message);
|