-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
223 additions
and
91 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,4 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
bin/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const { compile } = require('nexe') | ||
|
||
if(!process.env.binFolder) { | ||
console.log(JSON.stringify(process.env)); | ||
process.exit(1); | ||
} | ||
|
||
compile({ | ||
build: true, | ||
make: [ '-j4' ], | ||
input: '../index.js', | ||
output: (process.env.binFolder || "..") + '/bin/mac/picgo', | ||
name: "picgo-cli", | ||
resources: ["node_modules/**/*", "!node_modules/nexe/*"], | ||
patches: [ | ||
(x, next) => { | ||
x.code = () => [x.shims.join(''), x.input].join(';') | ||
return next() | ||
}, | ||
async (compiler, next) => { | ||
await compiler.setFileContentsAsync( | ||
'lib/_third_party_main.js', | ||
compiler.code() | ||
) | ||
compiler.options.empty = true // <-- ADDED THIS (hack) | ||
return next() | ||
} | ||
] | ||
}).then(() => { | ||
process.exit(0); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
codesign --force --sign Developer ../bin/mac/picgo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
{ | ||
"name": "picgo-cli", | ||
"version": "1.3.7", | ||
"version": "1.4.4", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"pkg-win64": "nexe index.js --output bin/win64/picgo.exe --target {platform: 'win', arch: 'x64'} --rc {CompanyName: 'PicGo'}", | ||
"pkg-win32": "nexe index.js --output bin/win32/picgo.exe --target {platform: 'win', arch: 'ia32'} --rc {CompanyName: 'PicGo'}", | ||
"pkg-mac": "nexe index.js --output bin/mac/picgo --target {platform: 'mac'}", | ||
"pkg-linux": "nexe index.js --output bin/linux/picgo --target {platform: 'linux', arch: 'x64'}" | ||
"build-mac": "node ./mac/compile.js", | ||
"pkg": " pkg index.js --targets win --output bin/win/picgo.exe --assets node_modules/**/* --debug", | ||
"nexe-win64": "nexe index.js --output bin/win64/picgo.exe --target {platform: 'win', arch: 'x64'} --rc {CompanyName: 'PicGo'}", | ||
"nexe-win32": "nexe index.js --output bin/win32/picgo.exe --target {platform: 'win', arch: 'ia32'} --rc {CompanyName: 'PicGo'}", | ||
"nexe-mac": "nexe index.js --output bin/mac/picgo --target {platform: 'mac'}", | ||
"nexe-linux": "nexe index.js --output bin/linux/picgo --target {platform: 'linux', arch: 'x64'}" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"minimist": "^1.2.0", | ||
"picgo": "^1.3.7" | ||
"picgo": "^1.4.4" | ||
}, | ||
"pkg": { | ||
"assets": "node_modules/**/*" | ||
} | ||
} |