Skip to content

Commit

Permalink
feat: autoUpdate 0.1.6 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
go-tiger committed Mar 31, 2024
1 parent 1a4346b commit a7149e8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/assets/js/configmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function resolveSelectedRAM(ram) {
// Legacy behavior
const mem = os.totalmem();
return mem >= 8 * 1073741824
? '4G'
? '6G'
: mem >= 6 * 1073741824
? '3G'
: '2G';
Expand Down
4 changes: 0 additions & 4 deletions app/assets/js/scripts/uicore.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ webFrame.setVisualZoomLevelLimits(1, 1);
// Initialize auto updates in production environments.
let updateCheckListener;
if (!isDev) {
console.log('🚀 ipcRenderer:', ipcRenderer._events);
console.log('🚀 arch:', process.arch);
console.log('🚀 platform:', process.platform);
ipcRenderer.on('autoUpdateNotification', (event, arg, info) => {
console.log('🚀 info:', info);
switch (arg) {
case 'checking-for-update':
loggerAutoUpdater.info('Checking for update..');
Expand Down
2 changes: 1 addition & 1 deletion app/assets/lang/ko_KR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ releaseNotesFailed = "릴리스 노트 로드 실패."
newReleaseTitle = "새로운 릴리스 사용 가능"
newPreReleaseTitle = "새로운 프리릴리스 사용 가능"
downloadingButton = "다운로드 중.."
downloadButton = 'GitHub에서 다운로드<span style="font-size: 10px;color: gray;text-shadow: none !important;">런처를 닫고 dmg를 실행하여 업데이트하세요.</span>'
downloadButton = 'GitHub에서 다운로드<span style="font-size: 10px;color: gray;text-shadow: none !important;">런처를 닫고 실행하여 업데이트하세요.</span>'
latestVersionTitle = "최신 버전 사용 중"
checkForUpdatesButton = "업데이트 확인"
checkingForUpdatesButton = "업데이트 확인 중.."
Expand Down
5 changes: 0 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ LangLoader.setupLanguage();

// Setup auto updater.
function initAutoUpdater(event, data) {
console.log('🚀 data:', data);
console.log('🚀 event:', event);
if (data) {
autoUpdater.allowPrerelease = true;
} else {
Expand Down Expand Up @@ -66,9 +64,6 @@ function initAutoUpdater(event, data) {

// Open channel to listen for update actions.
ipcMain.on('autoUpdateAction', (event, arg, data) => {
console.log('🚀 data:', data);
console.log('🚀 arg:', arg);
console.log('🚀 event:', event);
switch (arg) {
case 'initAutoUpdater':
console.log('Initializing auto updater.');
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TeamHandmadeLauncher",
"version": "0.1.5",
"version": "0.1.6",
"productName": "teamhm",
"description": "Modded Minecraft Launcher",
"author": "gotiger (https://github.com/go-tiger/)",
Expand Down

0 comments on commit a7149e8

Please sign in to comment.