@@ -10,6 +10,14 @@ if(await exists(ROOT)) {
10
10
Deno . exit ( 1 ) ;
11
11
}
12
12
13
+ console . log ( "Downloading container management tools..." )
14
+ if ( ! await exists ( "chroot/jail" ) )
15
+ await Deno . run ( { cmd : [ "git" , "submodule" , "update" , "--init" ] } ) . status ( ) ;
16
+
17
+ console . log ( "Vendoring TypeScript dependencies..." ) ;
18
+ if ( ! await exists ( "vendor" ) )
19
+ await Deno . run ( { cmd : [ "deno" , "vendor" , "main.ts" ] } ) . status ( ) ;
20
+
13
21
const vscode = await releaseUrl ( "gitpod-io" , "openvscode-server" , "-linux-x64.tar.gz" ) ;
14
22
await download ( vscode ) ;
15
23
await unpack ( basename ( vscode ) , [ "tar" , "xf" ] ) ;
@@ -18,14 +26,6 @@ const rclone = await releaseUrl("rclone", "rclone", "-linux-amd64.zip");
18
26
await download ( rclone ) ;
19
27
await unpack ( basename ( rclone ) , [ "unzip" ] ) ;
20
28
21
- console . log ( "Vendoring TypeScript dependencies..." ) ;
22
- if ( ! await exists ( "vendor" ) )
23
- await Deno . run ( { cmd : [ "deno" , "vendor" , "main.ts" ] } ) . status ( ) ;
24
-
25
- console . log ( "Downloading container management tools..." )
26
- if ( ! await exists ( "chroot/jail" ) )
27
- await Deno . run ( { cmd : [ "git" , "submodule" , "update" , "--init" ] } ) . status ( ) ;
28
-
29
29
console . log ( "Preparing root directory for jails..." ) ;
30
30
Deno . renameSync ( dropExtension ( vscode ) , ROOT ) ;
31
31
Deno . renameSync ( dropExtension ( rclone ) + "/rclone" , ROOT + "/bin/rclone" ) ;
0 commit comments