diff options
author | 2018-12-12 17:05:34 +0100 | |
---|---|---|
committer | 2018-12-12 17:05:34 +0100 | |
commit | 2f4afb654ed8753e7b89da7619e489a9e3b5e20b (patch) | |
tree | 65a508aac8078d28f2d8fc4a6b323fb3e1b9b0be | |
parent | travis_wait test (diff) | |
download | ferdium-app-2f4afb654ed8753e7b89da7619e489a9e3b5e20b.tar.gz ferdium-app-2f4afb654ed8753e7b89da7619e489a9e3b5e20b.tar.zst ferdium-app-2f4afb654ed8753e7b89da7619e489a9e3b5e20b.zip |
fix dictionaries dir
-rw-r--r-- | gulpfile.babel.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index e732f991a..fc2820fed 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js | |||
@@ -25,7 +25,7 @@ const paths = { | |||
25 | src: 'src', | 25 | src: 'src', |
26 | dest: 'build', | 26 | dest: 'build', |
27 | tmp: '.tmp', | 27 | tmp: '.tmp', |
28 | dictionaries: 'build/dictionaries', | 28 | dictionaries: 'dictionaries', |
29 | package: `out/${config.version}`, | 29 | package: `out/${config.version}`, |
30 | html: { | 30 | html: { |
31 | src: 'src/**/*.html', | 31 | src: 'src/**/*.html', |
@@ -74,7 +74,8 @@ export function mvSrc() { | |||
74 | `${paths.src}/*/**`, | 74 | `${paths.src}/*/**`, |
75 | `!${paths.scripts.watch}`, | 75 | `!${paths.scripts.watch}`, |
76 | `!${paths.src}/styles/**`, | 76 | `!${paths.src}/styles/**`, |
77 | ], { since: gulp.lastRun(mvSrc) }) | 77 | ], { since: gulp.lastRun(mvSrc) }, |
78 | ) | ||
78 | .pipe(gulp.dest(paths.dest)); | 79 | .pipe(gulp.dest(paths.dest)); |
79 | } | 80 | } |
80 | 81 | ||
@@ -82,7 +83,8 @@ export function mvPackageJson() { | |||
82 | return gulp.src( | 83 | return gulp.src( |
83 | [ | 84 | [ |
84 | './package.json', | 85 | './package.json', |
85 | ]) | 86 | ], |
87 | ) | ||
86 | .pipe(gulp.dest(paths.dest)); | 88 | .pipe(gulp.dest(paths.dest)); |
87 | } | 89 | } |
88 | 90 | ||
@@ -143,10 +145,10 @@ export function dictionaries(done) { | |||
143 | rm -rf ${paths.dictionaries} | 145 | rm -rf ${paths.dictionaries} |
144 | npm install --prefix ${paths.dictionaries} ${packages} | 146 | npm install --prefix ${paths.dictionaries} ${packages} |
145 | mv ${paths.dictionaries}/node_modules/* ${paths.dictionaries} | 147 | mv ${paths.dictionaries}/node_modules/* ${paths.dictionaries} |
146 | rm -rf ${paths.dictionaries}/node_modules ${paths.dictionaries}/package-lock.json`, | 148 | rm -rf ${paths.dictionaries}/node_modules ${paths.dictionaries}/package-lock.json |
147 | done, | 149 | pwd`, |
148 | ); | 150 | done); |
149 | } | 151 | } |
150 | 152 | ||
151 | export function sign(done) { | 153 | export function sign(done) { |
152 | _shell(`codesign --verbose=4 --deep --strict --force --sign "${process.env.SIGNING_IDENTITY}" "${__dirname}/node_modules/electron/dist/Electron.app"`, done); | 154 | _shell(`codesign --verbose=4 --deep --strict --force --sign "${process.env.SIGNING_IDENTITY}" "${__dirname}/node_modules/electron/dist/Electron.app"`, done); |