fix: allow paths to asar archives to contain the .asar extension in directories (#20342) (#20401)

This commit is contained in:
Milan Burda
2019-10-02 11:03:44 +02:00
committed by Cheng Zhao
parent 312f14ee88
commit 8536f62826
19 changed files with 203 additions and 183 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
const fs = require('fs')
const path = require('path')
const stats = fs.statSync(path.join(__dirname, '..', 'asar', 'a.asar'))
const stats = fs.statSync(path.join(__dirname, '..', 'test.asar', 'a.asar'))
const details = {
isFile: stats.isFile(),

View File

@@ -25,7 +25,7 @@ app.once('ready', () => {
app.exit(1)
})
window.loadFile(path.resolve(__dirname, 'asar', 'video.asar', 'index.html'))
window.loadFile(path.resolve(__dirname, 'test.asar', 'video.asar', 'index.html'))
ipcMain.on('asar-video', (event, message, error) => {
if (message === 'ended') {

View File

Before

Width:  |  Height:  |  Size: 628 KiB

After

Width:  |  Height:  |  Size: 628 KiB