Skip to content

Commit

Permalink
electron 7.1.8 which should fix auto update issue in electron-build, …
Browse files Browse the repository at this point in the history
…according to some developer reports
  • Loading branch information
szTheory committed Jan 10, 2020
1 parent fade9d6 commit 9d4ede5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"spectre.css": "^0.5.8"
},
"devDependencies": {
"electron": "7.1.2",
"electron": "7.1.8",
"electron-builder": "^22.2.0",
"electron-webpack": "^2.7.4",
"node-sass": "^4.13.0",
Expand Down
22 changes: 12 additions & 10 deletions src/common/add_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ async function addFile({ file }) {
.catch(console.error);
}

function cleanExifData(exifHash) {
// remove basic file info that is part of
// exiftools output, but not metadata
delete exifHash.SourceFile;
delete exifHash.ImageSize;
delete exifHash.Megapixels;

return exifHash;
}

// The heart of the app, removing exif data from the image.
// This uses the Perl binary "exiftool" from .resources
// TODO: ensure process is close after we're done working
Expand Down Expand Up @@ -82,16 +92,8 @@ async function removeExif({ filePath }) {
return Promise.resolve(exifData);
}

function cleanExifData(exifHash) {
// remove basic file info that is part of
// exiftools output, but not metadata
delete exifHash.SourceFile;
delete exifHash.ImageSize;
delete exifHash.Megapixels;

return exifHash;
}

// Read the exif data using the exiftool bin.
// This should also have the perl processes cleaned up after.
async function getExif({ filePath }) {
const ep = new exiftool.ExiftoolProcess(exiftoolBinPath);
const exifData = ep
Expand Down

0 comments on commit 9d4ede5

Please sign in to comment.