Fix missing webmanifest (#1180)

This commit is contained in:
Jaifroid 2023-12-06 20:40:55 +00:00 committed by GitHub
parent d6b807f23f
commit 60a84faf30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ EXPOSE 80
RUN mkdir /usr/share/nginx/html/current/
COPY ./docker/index.nginx.html /usr/share/nginx/html/index.html
COPY ./dist/manifest.json /usr/share/nginx/html/current/
COPY ./dist/manifest.webapp /usr/share/nginx/html/current/
COPY ./dist/manifest.webmanifest /usr/share/nginx/html/current/
COPY ./dist/replayWorker.js /usr/share/nginx/html/current/
COPY ./dist/service-worker.js /usr/share/nginx/html/current/
COPY ./dist/index.html /usr/share/nginx/html/current/

View File

@ -48,7 +48,7 @@ const config = {
},
{ src: ['node_modules/bootstrap/dist/css/bootstrap.min.*'], dest: 'dist/www/css' },
{ src: ['i18n/*'], dest: 'dist/i18n' },
{ src: ['archives', 'backgroundscript.js', 'index.html', 'manifest.json', 'manifest.fx.v3.json', 'manifest.v2.json', 'manifest.webapp', 'package.json', 'LICENSE-GPLv3.txt', 'CHANGELOG.md', 'README.md', '*.pfx', '*.cjs'], dest: 'dist' }
{ src: ['archives', 'backgroundscript.js', 'index.html', 'manifest.json', 'manifest.fx.v3.json', 'manifest.v2.json', 'manifest.webapp', 'manifest.webmanifest', 'package.json', 'LICENSE-GPLv3.txt', 'CHANGELOG.md', 'README.md', '*.pfx', '*.cjs'], dest: 'dist' }
],
flatten: true
})
@ -168,7 +168,7 @@ if (process.env.BUILD === 'production') {
// Alter remaining lib references
.replace(/([\\/])js[\\/]lib/g, '$1js')
// Remove unneeded ASM/WASM binaries
.replace(/["']www[\\/]js[\\/].*dec.*js["'],\s*/g, '')
.replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '')
},
{
src: ['replayWorker.js'],

View File

@ -69,7 +69,7 @@ var useAppCache = true;
/**
* A global Boolean that records whether the ReplayWorker is available
*/
var isReplayWorkerAvailable = false;
let isReplayWorkerAvailable = false;
/**
* A regular expression that matches the Content-Types of assets that may be stored in ASSETS_CACHE

View File

@ -1,7 +1,7 @@
/**
* zimArchiveLoader.js: Functions to search and read ZIM archives.
*
* Copyright 2015 Mossroy and contributors
* Copyright 2015-2024 Mossroy and contributors
* Licence GPL v3:
*
* This file is part of Kiwix.