Skip to content

Commit

Permalink
OC 0.7.7 support, change app icon
Browse files Browse the repository at this point in the history
OC 0.7.7 지원, 앱 아이콘 변경
  • Loading branch information
dropdb220 committed Jan 16, 2022
1 parent 83842ca commit 5d72f37
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 61 deletions.
Binary file modified Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified build/icon.icns
Binary file not shown.
3 changes: 2 additions & 1 deletion electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
"!**/{appveyor.yml,.travis.yml,circle.yml}",
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
"!out"
],
"mac": {
"category": "public.app-category-utilities",
Expand Down
5 changes: 3 additions & 2 deletions index-korean.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="get-started">
<img src="./Logo.png" alt="OpenCore Logo" height="30%" width="30%">
<h1>OpenCore Updater</h1>
<h2>지원되는 최신 버전: 0.7.6</h2>
<h2>지원되는 최신 버전: 0.7.7</h2>
<button id="start">시작하기</button>
</div>
<div id="select-opencore-version">
Expand All @@ -26,6 +26,7 @@ <h1>OpenCore 버전 선택</h1>
<li>0.6.3 미만의 버전은 지원되지 않습니다.</li>
</ul>
<select id="oc-version-selection">
<option value="0.7.7" selected>0.7.7</option>
<option value="0.7.6">0.7.6</option>
<option value="0.7.5">0.7.5</option>
<option value="0.7.4">0.7.4</option>
Expand All @@ -45,7 +46,7 @@ <h1>OpenCore 버전 선택</h1>
</div>
<div id="efiinfo">
<h1>EFI 정보</h1>
<p>최신 버전: 0.7.6</p>
<p>최신 버전: 0.7.7</p>
<p>현재 버전: <span id="oc-version"></span></p>
<p>사용 중인 kext:</p>
<div id="using-kexts"></div>
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="get-started">
<img src="./Logo.png" alt="OpenCore Logo" height="30%" width="30%">
<h1>OpenCore Updater</h1>
<h2>Current supported version: 0.7.6</h2>
<h2>Current supported version: 0.7.7</h2>
<button id="start">Get started</button>
</div>
<div id="select-opencore-version">
Expand All @@ -26,7 +26,8 @@ <h1>Select OpenCore version</h1>
<li>Versions older than 0.6.3 are not supported.</li>
</ul>
<select id="oc-version-selection">
<option value="0.7.6" selected>0.7.6</option>
<option value="0.7.7" selected>0.7.7</option>
<option value="0.7.6">0.7.6</option>
<option value="0.7.5">0.7.5</option>
<option value="0.7.4">0.7.4</option>
<option value="0.7.3">0.7.3</option>
Expand All @@ -45,7 +46,7 @@ <h1>Select OpenCore version</h1>
</div>
<div id="efiinfo">
<h1>Your EFI info</h1>
<p>Latest version is 0.7.6.</p>
<p>Latest version is 0.7.7.</p>
<p>Your OpenCore version is <span id="oc-version"></span>.</p>
<p>You're using the following kexts:</p>
<div id="using-kexts"></div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oc-updater",
"productName": "OpenCore Updater",
"version": "1.1.4",
"version": "1.2.0",
"description": "OpenCore Updater",
"main": "dist/index.js",
"scripts": {
Expand Down
49 changes: 25 additions & 24 deletions src/index.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function afterOcverSelection(ocver: string, efidir: string) {
const ocverNum = Number(ocver.split('.').join(''));
document.querySelector('#oc-version')!.innerHTML = ocver;
document.querySelector('#using-kexts')!.innerHTML = kexts.join('<br>');
if (ocverNum < 76) {
if (ocverNum < 77) {
document.querySelector('#is-outdated')!.innerHTML = isKorean ? '구버전 OpenCore를 사용하고 있어요.' : 'Your OpenCore is outdated.';
document.querySelector<HTMLElement>('#update')!.style.display = 'block';
document.querySelector('#update')?.addEventListener('click', async () => {
Expand Down
41 changes: 41 additions & 0 deletions src/update/076-to-077.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// import plist and fs
import fs from 'fs';
import plist from 'plist';
export default {
from: 76,
configPlistChange: true,
exec: (file: string) => {
// read ${file} as utf8, parse it as plist, and save it to variable `plistParsed`
const plistParsed: any = plist.parse(fs.readFileSync(file, 'utf8'));
/*
set NVRAM - Add - 7C436110-AB2A-4BBB-A880-FE41995C9F82 - SystemAudioVolumeDB to <Buffer e2>
set UEFI - AppleInput - PointerPollMin to 10
set UEFI - AppleInput - PointerPollMax to 80
set UEFI - AppleInput - PointerPollMask to -1
set UEFI - Audio - AudioOutMask to -1
set UEFI - Audio - DisconnectHda to false
set UEFI - Audio - MaximumGain to -15
set UEFI - Audio - MinimumAssistGain to -30
set UEFI - Audio - MinimumAudibleGain to -55
remove UEFI - Audio - AudioOut
remove UEFI - Audio - MinimumVolume
remove UEFI - Audio - VolumeAmplifier
*/
plistParsed.NVRAM.Add['7C436110-AB2A-4BBB-A880-FE41995C9F82'].SystemAudioVolumeDB = Buffer.from([0xE2]);
plistParsed.UEFI.AppleInput.PointerPollMin = 10;
plistParsed.UEFI.AppleInput.PointerPollMax = 80;
plistParsed.UEFI.AppleInput.PointerPollMask = -1;
plistParsed.UEFI.Audio.AudioOutMask = -1;
plistParsed.UEFI.Audio.DisconnectHda = false;
plistParsed.UEFI.Audio.MaximumGain = -15;
plistParsed.UEFI.Audio.MinimumAssistGain = -30;
plistParsed.UEFI.Audio.MinimumAudibleGain = -55;
delete plistParsed.UEFI.Audio.AudioOut;
delete plistParsed.UEFI.Audio.MinimumVolume;
delete plistParsed.UEFI.Audio.VolumeAmplifier;
// write plistParsed to ${file}
fs.writeFileSync(file, plist.build(plistParsed));
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": ["node_modules", "out", "dist"]
"include": ["src/**/*"]
}
61 changes: 33 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,20 @@
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==

"@types/node@*", "@types/node@^16.11.6":
version "16.11.12"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.12.tgz#ac7fb693ac587ee182c3780c26eb65546a1a3c10"
integrity sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw==
"@types/node@*":
version "17.0.8"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.8.tgz#50d680c8a8a78fe30abe6906453b21ad8ab0ad7b"
integrity sha512-YofkM6fGv4gDJq78g4j0mMuGMkZVxZDgtU0JRdx6FgiJDG+0fY0GKVolOV8WqVmEhLCXkQRjwDdKyPxJp/uucg==

"@types/node@^14.6.2":
version "14.18.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.0.tgz#98df2397f6936bfbff4f089e40e06fa5dd88d32a"
integrity sha512-0GeIl2kmVMXEnx8tg1SlG6Gg8vkqirrW752KqolYo1PHevhhZN3bhJ67qHj+bQaINhX0Ra3TlWwRvMCd9iEfNQ==
version "14.18.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.5.tgz#0dd636fe7b2c6055cbed0d4ca3b7fb540f130a96"
integrity sha512-LMy+vDDcQR48EZdEx5wRX1q/sEl6NdGuHXPnfeL8ixkwCOSZ2qnIyIZmcCbdX0MeRqHhAcHmX+haCbrS8Run+A==

"@types/node@^16.11.6":
version "16.11.19"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.19.tgz#1afa165146997b8286b6eabcb1c2d50729055169"
integrity sha512-BPAcfDPoHlRQNKktbsbnpACGdypPFBuX4xQlsWDE7B8XXcfII+SpOLay3/qZmCLb39kV5S1RTYwXdkx2lwLYng==

"@types/plist@^3.0.1":
version "3.0.2"
Expand All @@ -132,9 +137,9 @@
integrity sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw==

"@types/yargs@^17.0.1":
version "17.0.7"
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.7.tgz#44a484c634761da4391477515a98772b82b5060f"
integrity sha512-OvLKmpKdea1aWtqHv9bxVVcMoT6syAeK+198dfETIFkAevYRGwqh4H+KFxfjUETZuUuE5sQCAFwdOdoHUdo8eg==
version "17.0.8"
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.8.tgz#d23a3476fd3da8a0ea44b5494ca7fa677b9dad4c"
integrity sha512-wDeUwiUmem9FzsyysEwRukaEdDNcwbROvQ9QGRKaLI6t+IltNzbn4/i4asmB10auvZGQCzSQ6t0GSczEThlUXw==
dependencies:
"@types/yargs-parser" "*"

Expand Down Expand Up @@ -395,9 +400,9 @@ cacheable-request@^6.0.0:
responselike "^1.0.2"

camelcase@^6.2.0:
version "6.2.1"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.1.tgz#250fd350cfd555d0d2160b1d51510eaf8326e86e"
integrity sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA==
version "6.3.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==

chalk@^2.4.2:
version "2.4.2"
Expand Down Expand Up @@ -738,9 +743,9 @@ [email protected]:
mime "^2.5.2"

electron@^15.3.0:
version "15.3.3"
resolved "https://registry.yarnpkg.com/electron/-/electron-15.3.3.tgz#e66c6c6fbcd74641dbfafe5e101228d2b7734c7b"
integrity sha512-tr4UaMosN6+s8vSbx6OxqRXDTTCBjjJkmDMv0b0sg8f+cRFQeY0u7xYbULpXS4B1+hHJmdh7Nz40Qpv0bJXa6w==
version "15.3.5"
resolved "https://registry.yarnpkg.com/electron/-/electron-15.3.5.tgz#62fc7d2289d3f47e9e05c0aa9bb6d929a6faf398"
integrity sha512-z0/7+p3uZYBmjf7UEVBfcMTVgW6ThGgfI4jdbQ1TH4XOLYkj560/abv91/s8kK0MZ7JQg4KRP1JwQZ4q6+BPFw==
dependencies:
"@electron/get" "^1.13.0"
"@types/node" "^14.6.2"
Expand Down Expand Up @@ -959,9 +964,9 @@ got@^9.6.0:
url-parse-lax "^3.0.0"

graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
version "4.2.8"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a"
integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==
version "4.2.9"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96"
integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==

"graceful-readlink@>= 1.0.0":
version "1.0.1"
Expand All @@ -984,9 +989,9 @@ has-yarn@^2.1.0:
integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==

hosted-git-info@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.0.2.tgz#5e425507eede4fea846b7262f0838456c4209961"
integrity sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==
version "4.1.0"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224"
integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==
dependencies:
lru-cache "^6.0.0"

Expand Down Expand Up @@ -1693,9 +1698,9 @@ typedarray@^0.0.6:
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.4.4:
version "4.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998"
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==
version "4.5.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==

unique-string@^2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -1836,9 +1841,9 @@ yargs-parser@^21.0.0:
integrity sha512-z9kApYUOCwoeZ78rfRYYWdiU/iNL6mwwYlkkZfJoyMR1xps+NEBX5X7XmRpxkZHhXJ6+Ey00IwKxBBSW9FIjyA==

yargs@^17.0.1:
version "17.3.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.3.0.tgz#295c4ffd0eef148ef3e48f7a2e0f58d0e4f26b1c"
integrity sha512-GQl1pWyDoGptFPJx9b9L6kmR33TGusZvXIZUT+BOz9f7X2L94oeAskFYLEg/FkhV06zZPBYLvLZRWeYId29lew==
version "17.3.1"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.3.1.tgz#da56b28f32e2fd45aefb402ed9c26f42be4c07b9"
integrity sha512-WUANQeVgjLbNsEmGk20f+nlHgOqzRFpiGWVaBrYGYIGANIIu3lWjoyi0fNlFmJkvfhCZ6BXINe7/W2O2bV4iaA==
dependencies:
cliui "^7.0.2"
escalade "^3.1.1"
Expand Down

0 comments on commit 5d72f37

Please sign in to comment.