Commit 5f4e3592 authored by ransome1's avatar ransome1
Browse files

Added support for removable media for Snap build, fixed menu functions, worked on MacOS MAS submit

parent 564a1564
......@@ -29,4 +29,5 @@ System Volume Information/
Thumbs.db
src/css/
*.drawio*
*.provisionprofile
\ No newline at end of file
*.provisionprofile
out/
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.application-identifier</key>
<string>8QSR3UZXP8.com.todotxt.sleek</string>
<key>com.apple.developer.team-identifier</key>
<string>8QSR3UZXP8</string>
<key>com.apple.security.application-groups</key>
<array>
<string>8QSR3UZXP8.com.todotxt.sleek</string>
</array>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>8QSR3UZXP8.com.todotxt.sleek</string>
</array>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
......@@ -28,7 +22,5 @@
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
</plist>
\ No newline at end of file
</dict>
</plist>
\ No newline at end of file
#!/bin/bash
printf "......................\nresignAndPackage start\n\n"
# Name of your app.
APP="sleek"
# Your Certificate name.
CERT="Robin Ahle (8QSR3UZXP8)"
# The path of your app to sign.
APP_PATH="/Users/ransome/Development/sleek/dist/mas-universal/$APP.app"
# The path to the location you want to put the signed package.
RESULT_PATH="/Users/ransome/Development/sleek/dist/mas-universal/$APP-mac_store.pkg"
# The name of certificates you requested.
APP_KEY="Apple Distribution: $CERT"
INSTALLER_KEY="3rd Party Mac Developer Installer: $CERT"
# The path of your plist files.
PARENT_PLIST="build/entitlements.mas.plist"
CHILD_PLIST="build/entitlements.mas.inherit.plist"
LOGINHELPER_PLIST="build/entitlements.mas.loginhelper.plist"
FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Electron Framework"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libEGL.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libEGL.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libGLESv2.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libvk_swiftshader.dylib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/MainMenu.nib"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/am.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ar.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/bg.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/bn.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ca.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/chrome_100_percent.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/chrome_200_percent.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/cs.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/da.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/de.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/el.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/en.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/en_GB.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/es.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/es_419.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/et.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/fa.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/fi.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/fil.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/fr.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/gu.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/he.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/hi.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/hr.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/hu.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/icudtl.dat"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/id.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/it.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ja.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/kn.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ko.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/lt.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/lv.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ml.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/mr.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ms.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/nb.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/nl.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/pl.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/pt_BR.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/pt_PT.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/resources.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ro.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ru.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/sk.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/sl.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/sr.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/sv.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/sw.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/ta.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/te.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/th.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/tr.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/uk.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/v8_context_snapshot.arm64.bin"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/v8_context_snapshot.x86_64.bin"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/vi.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/zh_CN.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/zh_TW.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Resources/zh_TW.lproj/locale.pak"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/Resources/app.asar"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/Resources/icon.icns"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/embedded.provisionprofile"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper.app/Contents/MacOS/$APP Helper"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper (GPU).app/Contents/MacOS/$APP Helper (GPU)"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper (Renderer).app/Contents/MacOS/$APP Helper (Renderer)"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper (Plugin).app/Contents/MacOS/$APP Helper (Plugin)"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper.app/"
codesign -s "$APP_KEY" -f --entitlements "$LOGINHELPER_PLIST" "$APP_PATH/Contents/Library/LoginItems/$APP Login Helper.app/Contents/MacOS/$APP Login Helper"
codesign -s "$APP_KEY" -f --entitlements "$LOGINHELPER_PLIST" "$APP_PATH/Contents/Library/LoginItems/$APP Login Helper.app/"
codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/MacOS/$APP"
codesign -s "$APP_KEY" -f --entitlements "$PARENT_PLIST" "$APP_PATH"
productbuild --component "$APP_PATH" /Applications --sign "$INSTALLER_KEY" "$RESULT_PATH"
printf "\nresignAndPackage end\n......................\n"
\ No newline at end of file
#!/bin/bash
APP="sleek"
APP_PATH="dist/mas-universal/$APP.app"
PKG_PATH="dist/mas-universal/$APP-mas.pkg"
PARENT_PLIST="build/entitlements.mas.plist"
CHILD_PLIST="build/entitlements.mas.inherit.plist"
LOGINHELPER_PLIST="build/entitlements.mas.loginhelper.plist"
APP_KEY="Apple Distribution: Robin Ahle (8QSR3UZXP8)"
codesign --force --entitlements "$CHILD_PLIST" --deep --sign "$APP_KEY" "$APP_PATH"
codesign --force --entitlements "$PARENT_PLIST" --sign "$APP_KEY" "$APP_PATH"
codesign --force --entitlements "$LOGINHELPER_PLIST" --sign "$APP_KEY" "$APP_PATH/Contents/Library/LoginItems/$APP Login Helper.app/Contents/MacOS/$APP Login Helper"
codesign --force --entitlements "$LOGINHELPER_PLIST" --sign "$APP_KEY" "$APP_PATH/Contents/Library/LoginItems/$APP Login Helper.app/"
productbuild --component "$APP_PATH" /Applications --sign "3rd Party Mac Developer Installer: Robin Ahle (8QSR3UZXP8)" "$PKG_PATH"
\ No newline at end of file
{
"name": "sleek",
"productName": "sleek",
"version": "1.1.8-rc.1",
"version": "1.1.8-rc.2",
"description": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"synopsis": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"category": "ProjectManagement",
......@@ -19,8 +19,28 @@
"main": "src/main.js",
"buildResources": "src",
"build": {
"appId": "com.todotxt.sleek",
"buildVersion": "8",
"buildVersion": "12",
"files": [
"!flatpak-node${/*}",
"!snap${/*}",
"!flatpak${/*}",
"!.git${/*}",
"!.github${/*}",
"!dist${/*}",
"!**.pfx",
"!**.bak",
"!**.md",
"!**.gitignore",
"!yarn.lock",
"!yarn-error.log",
"!assets/screenshots${/*}",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
"!**/node_modules/.bin",
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}",
"!**/node_modules/search-index/si${/*}"
],
"linux": {
"icon": "assets/icons/sleek.png",
"category": "ProjectManagement",
......@@ -39,6 +59,8 @@
"arch": "universal"
}
],
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"icon": "build/icon.icns",
......@@ -46,16 +68,6 @@
"artifactName": "${productName}-${version}-mac.${ext}",
"darkModeSupport": true
},
"mas": {
"provisioningProfile": "build/distribution.provisionprofile",
"entitlements": "build/entitlements.mas.plist",
"entitlementsInherit": "build/entitlements.mas.inherit.plist"
},
"masDev": {
"provisioningProfile": "build/development.provisionprofile",
"entitlements": "build/entitlements.mas.plist",
"entitlementsInherit": "build/entitlements.mas.inherit.plist"
},
"dmg": {
"sign": false,
"background": "build/background.tiff",
......@@ -64,6 +76,12 @@
"height": 380
}
},
"mas": {
"hardenedRuntime": false,
"provisioningProfile": "build/distribution.provisionprofile",
"entitlements": "build/entitlements.mas.plist",
"entitlementsInherit": "build/entitlements.mas.inherit.plist"
},
"win": {
"target": [
"zip",
......@@ -98,23 +116,22 @@
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"scripts": {
"build:mas": "cross-env NODE_ENV=production yarn build:css && yarn build:pegjs && electron-builder -m mas --universal --publish never",
"build:mas-dev": "cross-env NODE_ENV=production yarn build:css && yarn build:pegjs && electron-builder -m mas-dev --universal --publish never",
"build:appx": "cross-env NODE_ENV=production yarn build:css && yarn build:pegjs && electron-builder -w appx --publish never",
"build:mas": "yarn build:css && yarn build:pegjs && electron-builder -m mas --universal --publish never && bash build/resignPkg.sh",
"build:dmg": "yarn build:css && yarn build:pegjs && electron-builder -m dmg --universal --publish never",
"build:appx": "yarn build:css && yarn build:pegjs && electron-builder -w appx --publish never",
"build:css": "sass src/scss/style.scss:src/css/style.css",
"build:pegjs": "peggy --format es --output src/js/filterlang.mjs src/js/filterlang.pegjs",
"lint": "eslint --ext .js, src --ext .mjs, src",
"sass": "sass -w src/scss/style.scss:src/css/style.css",
"start": "yarn sass & electron .",
"test": "cross-env PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn playwright test --config=test/playwright.config.js",
"test1": "cross-env PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn playwright test -g 'Check if multi line items are displayed correctly' --config=test/playwright.config.js"
"test": "yarn playwright test --config=test/playwright.config.js",
"test1": "yarn playwright test -g 'Check if multi line items are displayed correctly' --config=test/playwright.config.js"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.3",
"bulma": "^0.9.2",
"chokidar": "^3.5.1",
"electron-notarize": "^1.1.1",
"electron-updater": "^4.3.9",
"electron-updater": "^4.6.5",
"electron-windows-badge": "^1.1.0",
"i18next": "^21.6.6",
"i18next-fs-backend": "^1.1.1",
......@@ -125,9 +142,9 @@
},
"devDependencies": {
"@playwright/test": "^1.17.2",
"cross-env": "^7.0.3",
"electron": "^17.2.0",
"electron-builder": "^22.14.13",
"electron-builder": "23.0.2",
"electron-notarize": "^1.1.1",
"electron-reloader": "^1.2.2",
"eslint": "^8.6.0",
"peggy": "^1.2.0",
......
......@@ -35,6 +35,7 @@ apps:
- home
- browser-support
- network
- removable-media
parts:
sleek:
plugin: nil
......
......@@ -4,6 +4,7 @@ body.dark {
color: #f0f0f0;
}
body.dark code, body.dark pre {
color: #CCCDCF !important;
background-color: #212224 !important;
}
body.dark a {
......@@ -755,8 +756,9 @@ strong {
code, pre {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace !important;
background-color: #ebebeb !important;
color: inherit !important;
background: #ccc !important;
color: #5a5a5a !important;
border-radius: 0.65em;
}
#noResultContainer {
......@@ -1322,8 +1324,8 @@ a.contexts:hover span.tag {
background: #247561 !important;
}
a.contexts:focus-visible,
a.contexts.is-dark:focus-visible {
a.button.contexts:focus-visible,
a.button.contexts.is-dark:focus-visible {
background: #247561 !important;
color: white !important;
}
......@@ -1346,10 +1348,10 @@ a.projects:hover span.tag {
background: #822c82;
}
a.projects:focus-visible,
a.projects.is-dark:focus-visible {
a.button.projects:focus-visible,
a.button.projects.is-dark:focus-visible {
background: #822c82 !important;
color: white;
color: white !important;
}
a.projects.is-dark,
......@@ -1575,12 +1577,6 @@ a.priority.C:focus-visible span.tag {
}
#drawerContainer .drawer section .todoFilterHint {
cursor: help;
opacity: 0.4;
}
#drawerContainer .drawer section .todoFilterHint code {
color: white !important;
background: #2d2d2d !important;
border-radius: 0.65em;
}
#drawerContainer .drawer table tr td:nth-child(odd) {
width: auto;
......
This diff is collapsed.
......@@ -435,6 +435,7 @@ function generateFilterButtons(category, autoCompletePrefix) {
todoFiltersItem.setAttribute("data-category", category);
todoFiltersItem.classList.add("button", category);
todoFiltersItem.setAttribute("tabindex", 0)
todoFiltersItem.setAttribute("href", "#")
todoFiltersItem.innerHTML = filter;
// configuration for filter drawer buttons
......
"use strict";
import { translations } from "../render.js";
import { handleError } from "./helper.mjs";
import { showDrawer } from "./drawer.mjs";
import { resetFilters } from "./filters.mjs";
import { triggerToggle } from "./toggles.mjs";
window.api.receive("triggerFunction", async (name, args) => {
try {
......@@ -13,7 +19,7 @@ window.api.receive("triggerFunction", async (name, args) => {
onboarding.showOnboarding(...args).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "showForm":
......@@ -21,29 +27,29 @@ window.api.receive("triggerFunction", async (name, args) => {
form.show(...args).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "archiveTodos":
var prompt = await import("../js/prompt.mjs");
prompt.getConfirmation(todos.archiveTodos, await getTranslation("archivingPrompt"));
const prompt = await import("../js/prompt.mjs");
const todos = await import("../js/todos.mjs");
prompt.getConfirmation(todos.archiveTodos, translations.archivingPrompt);
break;
case "showDrawer":
var drawer = await import("../js/drawer.mjs");
drawer.show(...args).then(function(response) {
console.info(response);
showDrawer(document.getElementById("navBtnFilter")).then(function(result) {
console.log(result);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "handleError":
helper.handleError(...args);
handleError(...args);
break;
case "resetFilters":
filters.resetFilters(...args).then(function(response) {
resetFilters(true).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "showModal":
......@@ -51,29 +57,28 @@ window.api.receive("triggerFunction", async (name, args) => {
content.showModal(args[0]).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "setupInterface":
helper.setupInterface().then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "toggleDarkmode":
helper.toggleDarkmode().then(function(response) {
triggerToggle(document.getElementById("darkmode"), true).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
case "toggle":
const toggles = await import("../js/toggles.mjs");
toggles.triggerToggle(document.getElementById(...args), true).then(function(response) {
triggerToggle(document.getElementById(...args), true).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
break;
}
......@@ -90,6 +95,6 @@ window.api.receive("buildTable", async (args) => {
render.buildTable(...args).then(function(response) {
console.info(response);
}).catch(function(error) {
helper.handleError(error);
handleError(error);
});
});
\ No newline at end of file
......@@ -89,6 +89,7 @@
"of": "z",
"onboardingContainerBtnOpen": "Vyberte existující todo.txt",
"onboardingContainerSubtitle": "Začněte buď vybráním <strong>existujícího</strong> souboru todo.txt, nebo si vytvořte <strong>nový</strong>.",
"open": "Otevřený",
"openFile": "Otevřít todo.txt",
"paste": "Vložit",
"priorities": "Priority",
......
......@@ -91,6 +91,7 @@
"of": "von",
"onboardingContainerBtnOpen": "Vorhandene todo.txt öffnen",
"onboardingContainerSubtitle": "Öffne entweder eine <strong>vorhandene</strong> todo.txt Datei oder erstelle eine <strong>neue</strong>.",
"open": "Öffnen",
"openFile": "todo.txt öffnen",
"paste": "Einfügen",
"priorities": "Prioritäten",
......
......@@ -90,6 +90,7 @@
"of": "of",
"onboardingContainerBtnOpen": "Choose existing todo.txt",
"onboardingContainerSubtitle": "Start either by choosing your <strong>existing</strong> todo.txt file or creating a <strong>new</strong> one.",
"open": "Open",
"openFile": "Open todo.txt",
"paste": "Paste",
"priorities": "Priorities",
......
......@@ -89,6 +89,7 @@
"of": "de",
"onboardingContainerBtnOpen": "Elija un todo.txt existente",
"onboardingContainerSubtitle": "Comienza eligiendo un archivo <strong>existente</strong> todo.txt o creando un nuevo archivo <strong>nuevo</strong>",
"open": "Abrir",
"openFile": "Abrir todo.txt",
"paste": "Pegar",
"priorities": "Prioridades",
......
......@@ -89,6 +89,7 @@
"of": "de",
"onboardingContainerBtnOpen": "Choisir un fichier todo.txt existant",
"onboardingContainerSubtitle": "Commencez par choisir un fichier todo.txt <strong>existant</strong>, ou créez-en un <strong>nouveau</strong>.",
"open": "Ouvrir",
"openFile": "Ouvrir un fichier",
"paste": "Coller",
"priorities": "Priorités",
......
......@@ -89,6 +89,7 @@
"of": "/",
"onboardingContainerBtnOpen": "Meglévő todo.txt kiválasztása",
"onboardingContainerSubtitle": "Kezdjen a <strong>meglévő</strong> todo.txt fájl kiválasztásával vagy egy <strong>új</strong> létrehozásával.",
"open": "Nyitott",
"openFile": "A todo.txt megnyitása",
"paste": "Beillesztés",
"priorities": "Tulajdonságok",
......
......@@ -89,6 +89,7 @@
"of": "di",
"onboardingContainerBtnOpen": "Scegli un todo.txt esistente",
"onboardingContainerSubtitle": "Inizia scegliendo un file <strong>esistente</strong> todo.txt o creandone uno <strong>nuovo</strong>.",
"open": "Aperto",
"openFile": "Apri todo.txt",
"paste": "Incollare",
"priorities": "Priorità",
......
......@@ -89,6 +89,7 @@
"of": "の",
"onboardingContainerBtnOpen": "既存todo.txtを選択する",
"onboardingContainerSubtitle": "<strong>既存</strong> todo.txtファイルを選択するか, もしくは<strong>新規</strong>ファイルを作成する",
"open": "開ける",
"openFile": "todo.txtを開く",
"paste": "Paste",
"priorities": "優先度",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment