Update app.py
Browse files
app.py
CHANGED
@@ -1825,14 +1825,10 @@ if __name__ == "__main__":
|
|
1825 |
# PWA 파일들 생성
|
1826 |
create_pwa_files()
|
1827 |
|
1828 |
-
#
|
1829 |
os.makedirs('static', exist_ok=True)
|
|
|
1830 |
|
1831 |
-
# 서비스 워커 파일 생성
|
1832 |
-
sw_path = 'static/service-worker.js'
|
1833 |
-
with open(sw_path, 'w') as f:
|
1834 |
-
f.write(sw_content)
|
1835 |
-
|
1836 |
# 오디오 파일 체크
|
1837 |
audio_path = os.path.join('assets', 'main_music.mp3')
|
1838 |
if os.path.exists(audio_path):
|
@@ -1852,6 +1848,14 @@ if __name__ == "__main__":
|
|
1852 |
show_error=True,
|
1853 |
height=None,
|
1854 |
width="100%",
|
1855 |
-
favicon_path="static/icons/icon-72x72.png"
|
1856 |
-
|
1857 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1825 |
# PWA 파일들 생성
|
1826 |
create_pwa_files()
|
1827 |
|
1828 |
+
# 필요한 디렉토리들 생성
|
1829 |
os.makedirs('static', exist_ok=True)
|
1830 |
+
os.makedirs('assets', exist_ok=True)
|
1831 |
|
|
|
|
|
|
|
|
|
|
|
1832 |
# 오디오 파일 체크
|
1833 |
audio_path = os.path.join('assets', 'main_music.mp3')
|
1834 |
if os.path.exists(audio_path):
|
|
|
1848 |
show_error=True,
|
1849 |
height=None,
|
1850 |
width="100%",
|
1851 |
+
favicon_path="static/icons/icon-72x72.png",
|
1852 |
+
|
1853 |
+
# PWA 관련 헤더와 메타 데이터 추가
|
1854 |
+
head="""
|
1855 |
+
<link rel="manifest" href="/static/manifest.json">
|
1856 |
+
<meta name="theme-color" content="#0b0f19">
|
1857 |
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
1858 |
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
1859 |
+
<meta name="apple-mobile-web-app-title" content="디지털 굿판">
|
1860 |
+
"""
|
1861 |
+
)
|