diff --git a/notes/archivesManagerLogo.icns b/notes/archivesManagerLogo.icns new file mode 100644 index 0000000..b9a78b2 Binary files /dev/null and b/notes/archivesManagerLogo.icns differ diff --git a/package.json b/package.json index 15e9345..305022d 100755 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "prod": "rimraf dist && cross-env NODE_ENV=production webpack --progress --colors", "test": "mocha -r ts-node/register -r tsconfig-paths/register \"test/**/*.ts\"", "build:win": "electron-builder build --win --x64", - "build:mac": "electron-builder build --mac --x64" + "build:mac": "electron-builder build --mac --x64 -c.mac.identity=null" }, "build": { "appId": "com.dmf444.archivesmanager", @@ -20,7 +20,8 @@ "output": "./out/" }, "mac": { - "target": "pkg" + "target": "pkg", + "icon": "./notes/archivesManagerLogo.icns" }, "win": { "target": "nsis", diff --git a/src/main/settings/FileSaveSettings.ts b/src/main/settings/FileSaveSettings.ts index 9608228..246153b 100644 --- a/src/main/settings/FileSaveSettings.ts +++ b/src/main/settings/FileSaveSettings.ts @@ -1,4 +1,5 @@ const { app } = require('electron'); +const path = require('path'); export class FileSaveSettings implements ISettings{ get stagingPath(): string { @@ -16,8 +17,8 @@ export class FileSaveSettings implements ISettings{ constructor() { this.categoryName = "save"; this.localizedName = "Save Settings"; - this._stagingPath = app.getPath('temp') + "\\"; - this._processingPath = app.getPath('documents') + "\\smcs_archiver\\"; + this._stagingPath = app.getPath('temp') + path.sep; + this._processingPath = app.getPath('documents') + path.sep + "archiver" + path.sep; } public getSettingsJson(): {} { diff --git a/src/renderer/components/files/FileInfoMetadataForm.tsx b/src/renderer/components/files/FileInfoMetadataForm.tsx index bb9a909..41bf66e 100644 --- a/src/renderer/components/files/FileInfoMetadataForm.tsx +++ b/src/renderer/components/files/FileInfoMetadataForm.tsx @@ -137,12 +137,15 @@ export class FileInfoMetadataForm extends React.Component{tagName}); + if(this.state.tagOptions != null) { + for(let i = 0; i < this.state.tagOptions.length; i++) { + let tagName: string = this.state.tagOptions[i]; + if(isNaN(Number(tagName)) && isNaN(Number(tagName.substring(0, tagName.length - 1))) && !ignoredTags.includes(tagName)){ + tagOps.push(); + } } } + return tagOps; } @@ -227,4 +230,4 @@ export class FileInfoMetadataForm extends React.Component ); } -} \ No newline at end of file +} diff --git a/webpack.config.js b/webpack.config.js index 14443e7..f10580d 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,7 +26,7 @@ const commonConfig = { '@utils': srcPaths('src/utils'), }, extensions: ['.js', '.json', '.ts', '.tsx'], - mainFields: ["main"] + mainFields: ['main'], }, module: { rules: [