feat(scripts): support musl flag

This commit is contained in:
LongYinan 2020-06-11 18:42:10 +08:00
parent 7c4ccce3d8
commit c4e7fc622a
No known key found for this signature in database
GPG key ID: A3FFE134A3E20881

View file

@ -32,7 +32,7 @@ if (tomlContent.package && tomlContent.package.name) {
} }
const argv = parseArgs(process.argv.slice(2), { const argv = parseArgs(process.argv.slice(2), {
boolean: ['release', 'platform'], boolean: ['release', 'platform', 'musl'],
}) })
const platform = os.platform() const platform = os.platform()
@ -61,7 +61,7 @@ switch (platform) {
const targetDir = argv.release ? 'release' : 'debug' const targetDir = argv.release ? 'release' : 'debug'
const platformName = argv.platform ? `.${platform}` : '' const platformName = argv.musl ? '.musl' : argv.platform ? `.${platform}` : ''
let subcommand = let subcommand =
argv._[0] || argv._[0] ||