Download Jar. Libraryless. Click here for Pure Java version (15103L/115K).
1 | !7 |
2 | |
3 | !include once #1002615 // master() |
4 | |
5 | sS vmArgs = "-XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10 -XX:+UseG1GC"; |
6 | |
7 | // Web Auth, Cookies, agi.blue |
8 | static LS seedBots = ll(#1002590, #1002157, #1023558); |
9 | |
10 | static LS initialModuleIDs = ll( |
11 | "#1018866/SystemPrintLog", |
12 | "#1019954/TaskBar_dev", |
13 | "#1023954/AgiBlueControlPanel" |
14 | ); |
15 | |
16 | !include #1002576 // Web Serving |
17 | !include #1002578 // Eleu Core |
18 | !include #1013904 // Eleu web socket |
19 | |
20 | static int[] webServerPorts = {8080};
|
21 | static int[] httpsPorts = {};
|
22 | |
23 | sbool started; |
24 | |
25 | p {
|
26 | becomeBotVMIfFirst(); |
27 | homePageBotID = #1023558; |
28 | |
29 | runWithUserHomeAndParams(#1016478, actualUserDir("JavaX-Virtual/agi.blue"), |
30 | initialModules_override := voidfunc(O os) {
|
31 | dm_makeOrShowModules(initialModuleIDs) |
32 | }, |
33 | background := #1101701, |
34 | mainIconID := #1101704); |
35 | } |
36 | |
37 | svoid startEleu {
|
38 | if (started) ret; |
39 | started = true; |
40 | |
41 | webInit(); |
42 | |
43 | eleu_webSocket_init(); |
44 | |
45 | if (nempty(httpsPorts)) pcall {
|
46 | File keystore = firstFileThatExists( |
47 | javaxSecretDir("keystore.p12"),
|
48 | secretProgramFile(programID(), "keystore.jks")); |
49 | S pass = loadSecretTextFileMandatory("keystore-pass").trim();
|
50 | serveHttpsWithWebsockets_multiplePorts(keystore, pass, eleu_webSocket_handler(), httpsPorts); |
51 | } |
52 | |
53 | coreInit(); |
54 | for (S id : seedBots) call(getDispatcher(), 'addSeedBot, id); |
55 | } |
Began life as a copy of #1013896
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023951 |
| Snippet name: | agi.blue Standalone with GUI [OK] |
| Eternal ID of this version: | #1023951/17 |
| Text MD5: | 22fd3de67ad39c77b1b13743bf033ab8 |
| Transpilation MD5: | da73073fc7a5e6f5cc181d08aed94275 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-14 13:25:21 |
| Source code size: | 1388 bytes / 55 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 767 / 1854 |
| Version history: | 16 change(s) |
| Referenced in: | [show references] |