Skip to content

Commit

Permalink
okay it all works
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Nov 13, 2023
1 parent 50bf620 commit ee66c4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*.env
*.pdb
*.sw?
/bin
/build
/node_modules
/output
Expand Down
15 changes: 7 additions & 8 deletions src/tun2socks/build.action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

import url from 'url';
import fs from 'node:fs/promises';

import {spawnStream} from '../build/spawn_stream.mjs';
import {getBuildParameters} from '../build/get_build_parameters.mjs';
Expand All @@ -29,8 +28,6 @@ export async function main(...parameters) {

const outputDir = `${getRootDir()}/build/${platform}`;

await fs.mkdir(outputDir, {recursive: true});

switch (platform) {
case 'android':
return spawnStream(
Expand Down Expand Up @@ -60,18 +57,20 @@ export async function main(...parameters) {
case 'windows':
return spawnStream(
'xgo',
'-x',
'-targets=windows/386',
`-dest=${outputDir}/tun2socks.exe`,
'-pkg=outline/electron',
'github.com/Jigsaw-Code/outline-client/src/tun2socks'
`-dest=${outputDir}/tun2socks`,
'-pkg=src/tun2socks/outline/electron',
'.'
);
case 'linux':
return spawnStream(
'xgo',
'-x',
'-targets=linux/amd64',
`-dest=${outputDir}/tun2socks`,
'-pkg=outline/electron',
'github.com/Jigsaw-Code/outline-client/src/tun2socks'
'-pkg=src/tun2socks/outline/electron',
'.'
);
}
}
Expand Down

0 comments on commit ee66c4d

Please sign in to comment.