feat: add support for x64
This commit is contained in:
Родитель
c208907143
Коммит
b117b79ca4
|
@ -6,4 +6,4 @@ This module uses the [`debug`](https://npm.im/debug) module to print out debuggi
|
|||
use it, consult your operating system's documentation on setting environment variables _([Windows
|
||||
notes](https://github.com/visionmedia/debug#windows-command-prompt-notes))_. Set the `DEBUG`
|
||||
environment variable to `rcedit`, and it will print out information, including any `STDERR` output
|
||||
from `rcedit.exe`.
|
||||
from `rcedit.exe`/`rcedit-x64.exe`.
|
||||
|
|
Двоичный файл не отображается.
Двоичные данные
bin/rcedit.exe
Двоичные данные
bin/rcedit.exe
Двоичный файл не отображается.
|
@ -6,7 +6,7 @@ const singleSettings = ['file-version', 'product-version', 'icon', 'requested-ex
|
|||
const noPrefixSettings = ['application-manifest']
|
||||
|
||||
module.exports = async (exe, options) => {
|
||||
let rcedit = path.resolve(__dirname, '..', 'bin', 'rcedit.exe')
|
||||
let rcedit = path.resolve(__dirname, '..', 'bin', process.arch === 'x64' ? 'rcedit-x64.exe' : 'rcedit.exe')
|
||||
const args = [exe]
|
||||
|
||||
for (const name of pairSettings) {
|
||||
|
@ -35,7 +35,7 @@ module.exports = async (exe, options) => {
|
|||
|
||||
if (process.platform !== 'win32') {
|
||||
args.unshift(rcedit)
|
||||
rcedit = 'wine'
|
||||
rcedit = process.arch === 'x64' ? 'wine64' : 'wine'
|
||||
// Suppress "fixme:" stderr log messages
|
||||
spawnOptions.env.WINEDEBUG = '-all'
|
||||
}
|
||||
|
|
|
@ -4,11 +4,15 @@ const fs = require('fs')
|
|||
const got = require('got')
|
||||
const path = require('path')
|
||||
|
||||
const downloadURL = 'https://ci.appveyor.com/api/projects/zcbenz/rcedit/artifacts/Default/rcedit-x86.exe?job=Platform:%20Win32'
|
||||
const filePath = path.resolve(__dirname, '..', 'bin', 'rcedit.exe')
|
||||
const downloadURL32 = 'https://ci.appveyor.com/api/projects/zcbenz/rcedit/artifacts/Default/rcedit-x86.exe?job=Platform:%20Win32'
|
||||
const filePath32 = path.resolve(__dirname, '..', 'bin', 'rcedit.exe')
|
||||
|
||||
const downloadURL64 = 'https://ci.appveyor.com/api/projects/zcbenz/rcedit/artifacts/Default/rcedit-x64.exe?job=Platform:%20x64'
|
||||
const filePath64 = path.resolve(__dirname, '..', 'bin', 'rcedit-x64.exe')
|
||||
|
||||
process.on('uncaughtException', error => {
|
||||
console.log('Downloading rcedit.exe failed:', error.message)
|
||||
console.log('Downloading rcedit executables failed:', error.message)
|
||||
})
|
||||
|
||||
got.stream(downloadURL).pipe(fs.createWriteStream(filePath))
|
||||
got.stream(downloadURL32).pipe(fs.createWriteStream(filePath32))
|
||||
got.stream(downloadURL64).pipe(fs.createWriteStream(filePath64))
|
||||
|
|
Загрузка…
Ссылка в новой задаче