@@ -2,6 +2,7 @@ import { register, run } from "@coder/runner";
2
2
import * as fs from "fs" ;
3
3
import * as fse from "fs-extra" ;
4
4
import * as os from "os" ;
5
+ import { platform } from "./platform" ;
5
6
import * as path from "path" ;
6
7
import * as zlib from "zlib" ;
7
8
import * as https from "https" ;
@@ -180,12 +181,12 @@ register("package", async (runner, releaseTag) => {
180
181
181
182
const releasePath = path . resolve ( __dirname , "../release" ) ;
182
183
183
- const archiveName = `code-server${ releaseTag } -${ os . platform ( ) } -${ os . arch ( ) } ` ;
184
+ const archiveName = `code-server${ releaseTag } -${ platform ( ) } -${ os . arch ( ) } ` ;
184
185
const archiveDir = path . join ( releasePath , archiveName ) ;
185
186
fse . removeSync ( archiveDir ) ;
186
187
fse . mkdirpSync ( archiveDir ) ;
187
188
188
- const binaryPath = path . join ( __dirname , `../packages/server/cli-${ os . platform ( ) } -${ os . arch ( ) } ` ) ;
189
+ const binaryPath = path . join ( __dirname , `../packages/server/cli-${ platform ( ) } -${ os . arch ( ) } ` ) ;
189
190
const binaryDestination = path . join ( archiveDir , "code-server" ) ;
190
191
fse . copySync ( binaryPath , binaryDestination ) ;
191
192
fs . chmodSync ( binaryDestination , "755" ) ;
0 commit comments