move macos build files to resources, fix date for i18n
This commit is contained in:
parent
2108dd5975
commit
3e8df50847
6 changed files with 13 additions and 25 deletions
|
@ -1,14 +0,0 @@
|
||||||
<?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>
|
|
||||||
<!-- https://github.com/electron/electron-notarize#prerequisites -->
|
|
||||||
<key>com.apple.security.cs.allow-jit</key>
|
|
||||||
<true/>
|
|
||||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
|
||||||
<true/>
|
|
||||||
<!-- https://github.cm/electron-userland/electron-builder/issues/3940 -->
|
|
||||||
<key>com.apple.security.cs.disable-library-validation</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
|
@ -95,8 +95,8 @@
|
||||||
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
|
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
|
||||||
},
|
},
|
||||||
"appId": "cider",
|
"appId": "cider",
|
||||||
"afterPack": "./build/afterPack.js",
|
"afterPack": "./resources/afterPack.js",
|
||||||
"afterSign": "./build/notarize.js",
|
"afterSign": "./resources/notarize.js",
|
||||||
"protocols": [
|
"protocols": [
|
||||||
{
|
{
|
||||||
"name": "Cider",
|
"name": "Cider",
|
||||||
|
@ -158,8 +158,8 @@
|
||||||
"gatekeeperAssess": false,
|
"gatekeeperAssess": false,
|
||||||
"icon": "./resources/icons/icon.icns",
|
"icon": "./resources/icons/icon.icns",
|
||||||
"category": "public.app-category.music",
|
"category": "public.app-category.music",
|
||||||
"entitlements": "build/entitlements.mac.plist",
|
"entitlements": "./resources/entitlements.mac.plist",
|
||||||
"entitlementsInherit": "build/entitlements.mac.plist",
|
"entitlementsInherit": "./resources/entitlements.mac.plist",
|
||||||
"darkModeSupport": true,
|
"darkModeSupport": true,
|
||||||
"target": [
|
"target": [
|
||||||
"dmg"
|
"dmg"
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
|
<!-- https://github.com/electron/electron-notarize#prerequisites -->
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<!-- https://github.cm/electron-userland/electron-builder/issues/3940 -->
|
||||||
<key>com.apple.security.cs.disable-library-validation</key>
|
<key>com.apple.security.cs.disable-library-validation</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
|
@ -441,11 +441,11 @@
|
||||||
let month, year;
|
let month, year;
|
||||||
try {
|
try {
|
||||||
const releaseDate = new Date(date);
|
const releaseDate = new Date(date);
|
||||||
month = new Intl.DateTimeFormat('en-US', {month: 'long'}).format(releaseDate);
|
// month = new Intl.DateTimeFormat(this.app.cfg.general.language.replace('_','-'), {month: 'long'}).format(releaseDate);
|
||||||
date = releaseDate.getDate();
|
// date = releaseDate.getDate();
|
||||||
year = releaseDate.getFullYear();
|
// year = releaseDate.getFullYear();
|
||||||
|
|
||||||
return prefix + date + " " + month + " " + year;
|
return prefix + new Intl.DateTimeFormat(this.app.cfg.general.language?.replace('_','-') ?? 'en-US', {day:'numeric',month: 'long', year: 'numeric'}).format(releaseDate);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue