Skip to content

Commit dbb0684

Browse files
authored
fix: Clean up dependencies (#1851)
* fix: Clean up dependencies Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: Clean up release tarballs Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: typescript errors Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: add icons to build Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: add lib/ to build Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: add _locales/ to build Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: fix gulpfile Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: fix gulpfile Signed-off-by: Marcel Klehr <mklehr@gmx.net> * fix: fix capacitor.config.json Signed-off-by: Marcel Klehr <mklehr@gmx.net> --------- Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 6683981 commit dbb0684

File tree

7 files changed

+4458
-7064
lines changed

7 files changed

+4458
-7064
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ jobs:
230230
mkdir __fixtures__
231231
cd __fixtures__
232232
git init --bare test.git -b main
233+
npm i git-http-server
233234
npx git-http-server &
234235
npx htpasswd -cb test.git/.htpasswd admin admin
235236
if: matrix.floccus-adapter == 'git-xbel' || matrix.floccus-adapter == 'git-html'

gulpfile.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@ try {
3333
const VERSION = require('./package.json').version
3434
const paths = {
3535
zip: [
36-
'./**',
3736
(process.env['CI'] ? './' : '!') + 'dist/js/test.js',
38-
'!builds/**',
39-
'!src/**',
40-
'!node_modules/**',
41-
'!img/**',
42-
'!ISSUE_TEMPLATE.md',
43-
'!gulpfile.js',
44-
'!key.pem',
45-
'!android/**',
46-
'!ios/**',
47-
'!manifest*.json'
37+
'./dist/**',
38+
'./icons/**',
39+
'./lib/**',
40+
'./_locales/**',
41+
'LICENSE.txt',
42+
'PRIVACY_POLICY.md',
43+
'README.md',
4844
],
4945
views: './html/*.html',
5046
nativeHTML: './html/index.html',
@@ -193,7 +189,7 @@ const main = gulp.series(build, native)
193189

194190
const chromeZip = function() {
195191
return gulp
196-
.src(paths.chromeZip, { buffer: false })
192+
.src(paths.chromeZip, { buffer: false, base: './' })
197193
.pipe(rename((path) => {
198194
if (path.basename.startsWith('manifest') && path.extname === '.json') {
199195
path.basename = 'manifest'
@@ -205,7 +201,7 @@ const chromeZip = function() {
205201

206202
const firefoxZip = function() {
207203
return gulp
208-
.src(paths.firefoxZip, { buffer: false })
204+
.src(paths.firefoxZip, { buffer: false, base: './' })
209205
.pipe(rename((path) => {
210206
if (path.basename.startsWith('manifest') && path.extname === '.json') {
211207
path.basename = 'manifest'
@@ -217,7 +213,7 @@ const firefoxZip = function() {
217213

218214
const xpi = function() {
219215
return gulp
220-
.src(paths.firefoxZip, { buffer: false })
216+
.src(paths.firefoxZip, { buffer: false, base: './' })
221217
.pipe(rename((path) => {
222218
if (path.basename.startsWith('manifest') && path.extname === '.json') {
223219
path.basename = 'manifest'

ios/App/App/capacitor.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"PreferencesPlugin",
3030
"SharePlugin",
3131
"SplashScreenPlugin",
32-
"SendIntent"
32+
"SendIntentPlugin"
3333
]
3434
}

0 commit comments

Comments
 (0)