-
Notifications
You must be signed in to change notification settings - Fork 8
/
socket.ini
507 lines (377 loc) · 12.7 KB
/
socket.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
; ___ __ ___ __ ____
; /__ / / / /_/ /_ /
; __/ /__/ /__ / \ /__ /
;
; Socket ⚡︎ Runtime · A modern runtime for Web Apps · v0.5.4 (f8db1eaf)
;
; Note that "~" alias won't expand to the home directory in any of the config
; files. Use the full path instead.
;
; Build
; ---
;
[build]
; ssc will copy everything in this directory to the build output directory.
; This is useful when you want to avoid bundling or want to use tools like
; vite, webpack, rollup, etc. to build your project and then copy output to
; the Socket bundle resources directory.
; default value: "src"
; copy = "src"
; An ini file that maps files from the source directory to the build directory.
; copy_map = src/mapping.ini
; An list of environment variables, separated by commas.
env = USER, TMPDIR, PWD
; Advanced Compiler Settings (ie C++ compiler -02, -03, etc).
flags = -O3
; If true, the window will never be displayed.
; default value: false
headless = true
; The name of the program and executable to be output. Can't contain spaces or special characters. Required field.
name = "components"
; The binary output path. It's recommended to add this path to .gitignore.
; default value: "build"
output = ".build"
; The build script. It runs before the `[build] copy` phase.
; script = "npm run build"
[build.script]
; If true, it will pass build arguments to the build script. WARNING: this could be deprecated in the future.
; default value: false
forward_arguments = false
[build.watch]
; Configure your project to watch for sources that could change when running `ssc`.
; Could be a string or an array of strings
sources[] = "src"
[build.copy-map]
importmap.json = importmap.json
node_modules = node_modules
_test/index.js = _test/index.js
_test/util.js = _test/util.js
_test/index.html = index.html
index.js = index.js
accordion = accordion
badge = badge
button = button
chart = chart
checkbox = checkbox
dialog = dialog
form = form
icon = icon
input = input
loader = loader
panel = panel
popover = popover
profile-image = profile-image
progress-bar = progress-bar
range = range
relative-time = relative-time
router = router
select = select
split = split
sprite = sprite
tabs = tabs
textarea = textarea
toaster = toaster
toaster-inline = toaster-inline
toggle = toggle
tooltip = tooltip
windowed = windowed
;
; Webview
; ---
;
[webview]
; Make root open index.html
; default value: "/"
root = "/"
; Set default 'index.html' path to open for implicit routes
; default value: ""
; default_index = ""
; Tell the webview to watch for changes in its resources
; default value: false
watch = true
; Custom headers injected on all webview routes
; default value: ""
; headers[] = "X-Custom-Header: Some-Value"
importmap = "/importmap.json"
[webview.watch]
; Configure webview to reload when a file changes
; default value: true
reload = true
; Timeout in milliseconds to wait for service worker to reload before reloading webview
; default value: 500
service_worker_reload_timeout = 500
; Mount file system paths in webview navigator
[webview.navigator.mounts]
; $HOST_HOME/directory-in-home-folder/ = /mount/path/in/navigator
; $HOST_CONTAINER/directory-app-container/ = /mount/path/in/navigator
; $HOST_PROCESS_WORKING_DIRECTORY/directory-in-app-process-working-directory/ = /mount/path/in/navigator
; Specify allowed navigator navigation policy patterns
[webview.navigator.policies]
; allowed[] = "https://*.example.com/*"
;
; Permissions
; ---
;
[permissions]
; Allow/Disallow fullscreen in application
; default value: true
; allow_fullscreen = true
; Allow/Disallow microphone in application
; default value: true
; allow_microphone = true
; Allow/Disallow camera in application
; default value: true
; allow_camera = true
; Allow/Disallow user media (microphone + camera) in application
; default value: true
; allow_user_media = true
; Allow/Disallow geolocation in application
; default value: true
; allow_geolocation = true
; Allow/Disallow notifications in application
; default value: true
; allow_notifications = true
; Allow/Disallow sensors in application
; default value: true
; allow_sensors = true
; Allow/Disallow clipboard in application
; default value: true
; allow_clipboard = true
; Allow/Disallow bluetooth in application
; default value: true
; allow_bluetooth = true
; Allow/Disallow data access in application
; default value: true
; allow_data_access = true
; Allow/Disallow AirPlay access in application (macOS/iOS) only
; default value: true
; allow_airplay = true
; Allow/Disallow HotKey binding registration (desktop only)
; default value: true
; allow_hotkeys = true
;
; Debug
; ---
;
[debug]
; Advanced Compiler Settings for debug purposes (ie C++ compiler -g, etc).
flags = "-g"
;
; Meta
; ---
;
[meta]
; A unique ID that identifies the bundle (used by all app stores).
; It's required when `[meta] type` is not `"extension"`.
; It should be in a reverse DNS notation https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier#discussion
bundle_identifier = "com.components"
; A unique application protocol scheme to support deep linking
; If this value is not defined, then it is derived from the `[meta] bundle_identifier` value
application_protocol = "components"
; A string that gets used in the about dialog and package meta info.
; copyright = "(c) Beep Boop Corp. 1985"
; A short description of the app.
; description = "A UI for the beep boop network"
; Set the limit of files that can be opened by your process.
file_limit = 1024
; Localization
lang = "en-us"
; A String used in the about dialog and meta info.
; maintainer = "Beep Boop Corp."
; The title of the app used in metadata files. This is NOT a window title. Can contain spaces and special characters. Defaults to name in a [build] section.
title = "components"
; Builds an extension when set to "extension".
; default value: ""
; type = ""
; A string that indicates the version of the application. It should be a semver triple like 1.2.3. Defaults to 1.0.0.
version = 1.0.0
;
; Android
; ---
;
[android]
; Extensions of files that will not be stored compressed in the APK.
aapt_no_compress = ""
; Enables gradle based ndk build rather than using external native build (standard ndk is the old slow way)
enable_standard_ndk_build = false
; Name of the MainActivity class. Could be overwritten by custom native code.
main_activity = ""
; Which permissions does your application need: https://developer.android.com/guide/topics/permissions/overview
manifest_permissions = ""
; To restrict the set of ABIs that your application supports, set them here.
native_abis = ""
; Used for adding custom source files and related compiler attributes.
native_cflags = ""
native_sources = ""
native_makefile = ""
sources = ""
; The icon to use for identifying your app on Android.
icon = "src/icon.png"
; The various sizes and scales of the icons to create, required minimum are listed by default.
icon_sizes = "512@1x"
;
; iOS
; ---
;
[ios]
; signing guide: https://socketsupply.co/guides/#ios-1
codesign_identity = ""
; Describes how Xcode should export the archive. Available options: app-store, package, release-testing, enterprise, development, and developer-id.
distribution_method = "release-testing"
; A path to the provisioning profile used for signing iOS app.
provisioning_profile = ""
; which device to target when building for the simulator.
simulator_device = "iPhone 14"
; Indicate to Apple if you are using encryption that is not exempt.
; default value: false
; nonexempt_encryption = false
; The icon to use for identifying your app on iOS.
icon = "src/icon.png"
; The various sizes and scales of the icons to create, required minimum are listed by default.
icon_sizes = "29@1x 29@2x 29@3x 40@2x 40@3x 57@1x 57@2x 60@2x 60@3x"
;
; Linux
; ---
;
[linux]
; Helps to make your app searchable in Linux desktop environments.
categories = "Developer Tools"
; The command to execute to spawn the "back-end" process.
; cmd = "node backend/index.js"
; The icon to use for identifying your app in Linux desktop environments.
icon = "src/icon.png"
; The various sizes and scales of the icons to create, required minimum are listed by default.
icon_sizes = "512@1x"
;
; MacOS
; ---
;
[mac]
; A category in the App Store
category = ""
; The command to execute to spawn the "back-end" process.
; cmd = "node backend/index.js"
; TODO Signing guide: https://socketsupply.co/guides/#code-signing-certificates
codesign_identity = ""
; Additional paths to codesign
codesign_paths = ""
; Minimum supported MacOS version
; default value: "13.0.0"
; minimum_supported_version = "13.0.0"
; If titlebar_style is "hiddenInset", this will determine the x and y offsets of the window controls (traffic lights).
; window_control_offsets = "10x24"
; The icon to use for identifying your app on MacOS.
icon = "src/icon.png"
; The various sizes and scales of the icons to create, required minimum are listed by default.
icon_sizes = "16@1x 32@1x 128@1x"
;
; Native Extensions
; ---
;
[native]
; Files that should be added to the compile step.
files = native-module1.cc native-module2.cc
; Extra Headers
headers = native-module1.hh
;
; MS Windows
; ---
;
[win]
; The command to execute to spawn the “back-end” process.
; cmd = "node backend/index.js"
; The icon to use for identifying your app on Windows, relative to copied path resources
logo = "icon.ico"
; A relative path to the pfx file used for signing.
; pfx = "certs/cert.pfx"
; The signing information needed by the appx api.
; publisher = "CN=Beep Boop Corp., O=Beep Boop Corp., L=San Francisco, S=California, C=US"
; The icon to use for identifying your app on Windows.
icon = "src/icon.ico"
; The various sizes and scales of the icons to create, required minimum are listed by default.
icon_sizes = "512@1x"
;
; Application Window
; ---
;
[window]
; The initial height of the first window in pixels or as a percentage of the screen.
height = 50%
; The initial width of the first window in pixels or as a percentage of the screen.
width = 50%
; The initial color of the window in dark mode. If not provided, matches the current theme.
; default value: ""
; backgroundColorDark = "rgba(0, 0, 0, 1)"
; The initial color of the window in light mode. If not provided, matches the current theme.
; default value: ""
; backgroundColorLight = "rgba(255, 255, 255, 1)"
; Determine if the titlebar style (hidden, hiddenInset)
; default value: ""
; titlebar_style = "hiddenInset"
; Maximum height of the window in pixels or as a percentage of the screen.
; default value: 100%
; max_height = 100%
; Maximum width of the window in pixels or as a percentage of the screen.
; default value: 100%
; max_width = 100%
; Minimum height of the window in pixels or as a percentage of the screen.
; default value: 0
; min_height = 0
; Minimum width of the window in pixels or as a percentage of the screen.
; default value: 0
; min_width = 0
; Determines if the window has a title bar and border.
; default value: false
; frameless = false
; Determines if the window is resizable.
; default value: true
; resizable = true
; Determines if the window is maximizable.
; default value: true
; maximizable = true
; Determines if the window is minimizable.
; default value: true
; minimizable = true
; Determines if the window is closable.
; default value: true
; closable = true
; Determines the window is utility window.
; default value: false
; utility = false
[window.alert]
; The title that appears in the 'alert', 'prompt', and 'confirm' dialogs. If this value is not present, then the application title is used instead. Currently only supported on iOS/macOS.
; defalut value = ""
; title = ""
[application]
; If agent is set to true, the app will not display in the tab/window switcher or dock/task-bar etc. Useful if you are building a tray-only app.
; default value: false
; agent = true
[tray]
; The icon to be displayed in the operating system tray. On Windows, you may need to use ICO format.
; defalut value = ""
; icon = "src/icon.png"
[headless]
; The headless runner command. It is used when no OS specific runner is set.
runner = ""
; The headless runner command flags. It is used when no OS specific runner is set.
runner_flags = ""
; The headless runner command for Android
runner_android = ""
; The headless runner command flags for Android
runner_android_flags = ""
; The headless runner command for iOS
runner_ios = ""
; The headless runner command flags for iOS
runner_ios_flags = ""
; The headless runner command for Linux
runner_linux = ""
; The headless runner command flags for Linux
runner_linux_flags = ""
; The headless runner command for MacOS
runner_mac = ""
; The headless runner command flags for MacOS
runner_mac_flags = ""
; The headless runner command for Windows
runner_win32 = ""
; The headless runner command flags for Windows
runner_win32_flags = ""