Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
9de07a46
Commit
9de07a46
authored
Jun 30, 2017
by
Jeremy Bokobza
Committed by
GitHub
Jun 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #131 from dangershony/b-pack
Adding the path argument to the build
parents
5cc40b70
01bc3404
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
package.js
Breeze.UI/package.js
+6
-4
No files found.
Breeze.UI/package.js
View file @
9de07a46
"use strict"
;
"use strict"
;
var
packager
=
require
(
'electron-packager'
);
const
pkg
=
require
(
'./package.json'
);
...
...
@@ -10,6 +10,7 @@ const shouldUseAsar = argv.asar || false;
const
shouldBuildAll
=
argv
.
all
||
false
;
const
arch
=
argv
.
arch
||
'all'
;
const
platform
=
argv
.
platform
||
'darwin'
;
const
path
=
argv
.
path
||
'app-builds'
;
const
DEFAULT_OPTS
=
{
dir
:
'./dist'
,
...
...
@@ -19,7 +20,7 @@ const DEFAULT_OPTS = {
};
pack
(
platform
,
arch
,
function
done
(
err
,
appPath
)
{
pack
(
platform
,
arch
,
path
,
function
done
(
err
,
appPath
)
{
if
(
err
)
{
console
.
log
(
err
);
}
else
{
...
...
@@ -28,7 +29,8 @@ pack(platform, arch, function done(err, appPath) {
});
function
pack
(
plat
,
arch
,
cb
)
{
function
pack
(
plat
,
arch
,
path
,
cb
)
{
// there is no darwin ia32 electron
if
(
plat
===
'darwin'
&&
arch
===
'ia32'
)
return
;
...
...
@@ -52,7 +54,7 @@ function pack(plat, arch, cb) {
prune
:
true
,
overwrite
:
true
,
all
:
shouldBuildAll
,
out
:
`app-builds`
out
:
path
});
console
.
log
(
opts
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment