File tree 2 files changed +28
-26
lines changed 2 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ echo_standalone_postinstall() {
100
100
101
101
cath << EOF
102
102
103
- Standalone release has been installed into $STANDALONE_INSTALL_PREFIX /bin/$STANDALONE_BINARY_NAME
103
+ Coder has been installed to
104
+
105
+ $STANDALONE_INSTALL_PREFIX /bin/$STANDALONE_BINARY_NAME
104
106
105
107
EOF
106
108
@@ -114,7 +116,7 @@ Extend your path to use Coder:
114
116
115
117
EOF
116
118
elif [ " $CODER_COMMAND " != " $STANDALONE_BINARY_LOCATION " ]; then
117
- echo_path_conflict " $CODER_COMMAND " " $STANDALONE_INSTALL_PREFIX "
119
+ echo_path_conflict " $CODER_COMMAND "
118
120
else
119
121
cath << EOF
120
122
To run a Coder server:
@@ -135,16 +137,23 @@ echo_brew_postinstall() {
135
137
return
136
138
fi
137
139
138
- CODER_COMMAND=" $( command -v " coder" ) "
139
140
BREW_PREFIX=" $( brew --prefix) "
140
141
142
+ cath << EOF
143
+
144
+ Coder has been installed to
145
+
146
+ $BREW_PREFIX /bin/coder
147
+
148
+ EOF
149
+
150
+ CODER_COMMAND=" $( command -v " coder" ) "
151
+
141
152
if [ " $CODER_COMMAND " != " $BREW_PREFIX /bin/coder" ]; then
142
153
echo_path_conflict " $CODER_COMMAND " " $BREW_PREFIX "
143
154
fi
144
155
145
156
cath << EOF
146
- Homebrew formula has been installed.
147
-
148
157
To run a Coder server:
149
158
150
159
$ coder server
@@ -199,6 +208,10 @@ There is another binary in your PATH that conflicts with the binary we've instal
199
208
200
209
$1
201
210
211
+ The binary that we just installed is located here:
212
+
213
+ $2
214
+
202
215
This is likely because of an existing installation of Coder. See our documentation for suggests on how to resolve this.
203
216
204
217
https://coder.com/docs/v2/latest/install/install.sh#path-conflicts
Original file line number Diff line number Diff line change @@ -263,30 +263,19 @@ export const downloadCoderVersion = async (
263
263
return binaryPath ;
264
264
}
265
265
266
- // Runs our public install script using our options to
267
- // install the binary!
266
+ // Run our official install script to install the binary
268
267
await new Promise < void > ( ( resolve , reject ) => {
269
268
const cp = spawn (
270
- " sh",
269
+ path . join ( __dirname , "../../install. sh") ,
271
270
[
272
- "-c" ,
273
- [
274
- "curl" ,
275
- "-L" ,
276
- "https://coder.com/install.sh" ,
277
- "|" ,
278
- "sh" ,
279
- "-s" ,
280
- "--" ,
281
- "--version" ,
282
- version ,
283
- "--method" ,
284
- "standalone" ,
285
- "--prefix" ,
286
- tempDir ,
287
- "--binary-name" ,
288
- binaryName ,
289
- ] . join ( " " ) ,
271
+ "--version" ,
272
+ version ,
273
+ "--method" ,
274
+ "standalone" ,
275
+ "--prefix" ,
276
+ tempDir ,
277
+ "--binary-name" ,
278
+ binaryName ,
290
279
] ,
291
280
{
292
281
env : {
You can’t perform that action at this time.
0 commit comments