git ssb

0+

cel-desktop / ssb-pkg



Tree: d456a6cc8589489e558e6164750474ed2cfc961e

Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-46-input-target / main.js

533 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const assert = require('assert');
6const utils = require('../utils.js');
7
8assert(!module.parent);
9assert(__dirname === process.cwd());
10
11const target = process.argv[2] || 'latest';
12const input = './test-x-index';
13const exe = { win32: '.exe', linux: '-linux',
14 darwin: '-macos', freebsd: '-freebsd' }[process.platform];
15const newcomers = [ 'test-x-index' + exe ];
16const before = utils.filesBefore(newcomers);
17
18utils.pkg.sync([
19 '--target', target,
20 input
21]);
22
23utils.filesAfter(before, newcomers);
24

Built with git-ssb-web