feat: PC 화면 해상도 변경 — 설정에서 창 크기 프리셋 선택
CI / build (push) Failing after 14m21s

- electron/preload.cjs: contextBridge 로 window.desktop.setWindowSize 노출
- main.cjs: preload 연결 + ipcMain 'window:setSize'/'getSize' 핸들러
- SettingsView: PC(window.desktop 존재 시)에서 해상도 선택 추가
  (1024×720 ~ 1920×1080), 선택 시 창 크기 변경+가운데 정렬

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-27 23:57:41 +09:00
parent f34980048b
commit e4e1be49ca
3 changed files with 58 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
// 렌더러(웹)에서 안전하게 호출할 데스크톱 전용 API 노출 (contextIsolation 유지).
const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld('desktop', {
// 데스크톱 창 크기(해상도) 변경
setWindowSize: (w, h) => ipcRenderer.invoke('window:setSize', w, h),
getWindowSize: () => ipcRenderer.invoke('window:getSize'),
})