@@ -2,6 +2,7 @@ import { register, run } from "@coder/runner";
22import * as fs from "fs" ;
33import * as fse from "fs-extra" ;
44import * as os from "os" ;
5+ import { platform } from "./platform" ;
56import * as path from "path" ;
67import * as zlib from "zlib" ;
78import * as https from "https" ;
@@ -180,12 +181,12 @@ register("package", async (runner, releaseTag) => {
180181
181182 const releasePath = path . resolve ( __dirname , "../release" ) ;
182183
183- const archiveName = `code-server${ releaseTag } -${ os . platform ( ) } -${ os . arch ( ) } ` ;
184+ const archiveName = `code-server${ releaseTag } -${ platform ( ) } -${ os . arch ( ) } ` ;
184185 const archiveDir = path . join ( releasePath , archiveName ) ;
185186 fse . removeSync ( archiveDir ) ;
186187 fse . mkdirpSync ( archiveDir ) ;
187188
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 ( ) } ` ) ;
189190 const binaryDestination = path . join ( archiveDir , "code-server" ) ;
190191 fse . copySync ( binaryPath , binaryDestination ) ;
191192 fs . chmodSync ( binaryDestination , "755" ) ;
0 commit comments