Skip to content

Commit 77ab9bf

Browse files
committed
Build and config updates
1 parent f7af9d9 commit 77ab9bf

File tree

5 files changed

+94
-27
lines changed

5 files changed

+94
-27
lines changed

.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"name": "Subconscious Debugger",
99
"type": "debugpy",
1010
"request": "launch",
11-
"module": "examples.subconscious",
11+
"module": "main",
1212
"justMyCode": true,
1313
"console": "internalConsole",
14+
"cwd": "${workspaceFolder}/src"
1415
},
1516
{
1617
"name": "Subconscious Installer Debugger",

.vscode/tasks.json

Lines changed: 86 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,87 @@
66
{
77
"label": "Build Subconscious",
88
"type": "shell",
9-
"command": "conda activate langchain && pyinstaller",
9+
"command": "echo",
1010
"args": [
11-
"--onefile",
12-
"--noconsole",
13-
"--icon=src\\assets\\favicon.ico",
14-
"subconscious.pyw"
11+
"Complete!!!"
1512
],
1613
"problemMatcher": [],
1714
"dependsOn": [
1815
"Clean Build Dir",
16+
"Build Subconscious UI",
1917
"Copy Assets",
20-
"Build Subconscious Installer"
18+
"Build Subconscious Installer",
19+
"Copy Installer"
2120
],
2221
"dependsOrder": "sequence"
2322
},
23+
{
24+
"label": "Build Subconscious UI",
25+
"type": "shell",
26+
"command": "conda",
27+
"args": [
28+
"activate",
29+
"langchain",
30+
"&&",
31+
"flet",
32+
"pack",
33+
// "pyinstaller",
34+
// "--onefile",
35+
// "--windowed",
36+
// "--noconsole",
37+
"--name",
38+
"subconscious",
39+
"--icon=assets\\favicon.ico",
40+
"--product-name",
41+
"Subconscious",
42+
"--product-version",
43+
"v0.1.0",
44+
"--file-version",
45+
"0.1.0",
46+
"--file-description",
47+
"Subconscious UI for LLM use",
48+
"--copyright",
49+
"Copyright (C) 2024 by Subconscious.chat",
50+
"main.py",
51+
],
52+
"problemMatcher": [],
53+
"options": {
54+
"cwd": "${workspaceFolder}/src"
55+
}
56+
},
2457
{
2558
"label": "Build Subconscious Installer",
2659
"type": "shell",
27-
"command": "conda activate langchain && pyinstaller",
60+
// "command": "conda activate langchain && pyinstaller",
61+
"command": "conda",
2862
"args": [
29-
"--onefile",
30-
"--noconsole",
31-
"--icon=src\\assets\\favicon.ico",
32-
"installer\\installer.pyw"
63+
"activate",
64+
"langchain",
65+
"&&",
66+
"flet",
67+
"pack",
68+
// "--onefile",
69+
// "--windowed",
70+
// "--noconsole",
71+
"--name",
72+
"installer",
73+
"--icon=assets\\favicon.ico",
74+
"--product-name",
75+
"Subconscious Installer",
76+
"--product-version",
77+
"v0.1.0",
78+
"--file-version",
79+
"0.1.0",
80+
"--file-description",
81+
"Subconscious UI for LLM use",
82+
"--copyright",
83+
"Copyright (C) 2024 by Subconscious.chat",
84+
"main.py"
3385
],
3486
"problemMatcher": [],
87+
"options": {
88+
"cwd": "${workspaceFolder}/installer/src"
89+
}
3590
},
3691
{
3792
"label": "Clean Build Dir",
@@ -40,40 +95,49 @@
4095
"args": [
4196
"/s",
4297
"/q",
43-
"dist",
44-
"build",
98+
"src\\dist",
99+
"src\\build",
45100
"||",
46101
"exit",
47102
"0"
48103
],
49104
"problemMatcher": [],
105+
// "options": {
106+
// "cwd": "${workspaceFolder}/src"
107+
// }
50108
},
51109
{
52110
"label": "Copy Assets",
53111
"type": "shell",
54112
"command": "mkdir",
55113
"args": [
56-
"dist",
57-
"&&",
58-
"mkdir",
59-
"dist\\src",
114+
"src\\dist\\data",
60115
"&&",
61116
"xcopy",
62117
"src\\assets",
63-
"dist\\src\\assets",
118+
"src\\dist\\assets",
64119
"/q",
65120
"/e",
66121
"/i",
67122
"&&",
68123
"xcopy",
69124
"src\\lang",
70-
"dist\\src\\lang",
125+
"src\\dist\\lang",
71126
"/q",
72127
"/e",
73128
"/i",
74-
"&&",
75-
"mkdir",
76-
"dist\\data",
129+
],
130+
"problemMatcher": [],
131+
},
132+
{
133+
"label": "Copy Installer",
134+
"type": "shell",
135+
"command": "xcopy",
136+
"args": [
137+
"installer\\src\\dist\\installer.exe",
138+
"src\\dist",
139+
"/i",
140+
"/y",
77141
],
78142
"problemMatcher": [],
79143
}

installer/src/icon.png

29.4 KB
Loading

installer.spec renamed to installer/src/installer.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
a = Analysis(
5-
['installer\\installer.pyw'],
5+
['main.py'],
66
pathex=[],
77
binaries=[],
88
datas=[],
@@ -35,5 +35,6 @@ exe = EXE(
3535
target_arch=None,
3636
codesign_identity=None,
3737
entitlements_file=None,
38-
icon=['src\\assets\\favicon.ico'],
38+
version='C:\\Users\\brian\\AppData\\Local\\Temp\\0d9aa1b6-c06d-4f99-bcd8-c4debd724d19',
39+
icon=['assets\\favicon.ico'],
3940
)

subconscious.spec renamed to src/subconscious.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
a = Analysis(
5-
['subconscious.pyw'],
5+
['main.py'],
66
pathex=[],
77
binaries=[],
88
datas=[],
@@ -35,5 +35,6 @@ exe = EXE(
3535
target_arch=None,
3636
codesign_identity=None,
3737
entitlements_file=None,
38-
icon=['src\\assets\\favicon.ico'],
38+
version='C:\\Users\\brian\\AppData\\Local\\Temp\\1d84a19d-0a5b-4b9a-ae31-36b8743ac365',
39+
icon=['assets\\favicon.ico'],
3940
)

0 commit comments

Comments
 (0)