-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
85 lines (74 loc) · 2.14 KB
/
setup.bat
File metadata and controls
85 lines (74 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
echo ======================================
echo Web to Comic - Setup Installer
echo ======================================
echo.
REM Check if running from correct directory
if not exist "manifest.json" (
echo ERROR: Please run this script from the WebToComin folder
echo.
pause
exit /b 1
)
echo Checking files...
REM Check required directories
set "missing="
if not exist "popup\popup.html" set "missing=!missing! popup"
if not exist "sidepanel\sidepanel.html" set "missing=!missing! sidepanel"
if not exist "options\options.html" set "missing=!missing! options"
if not exist "background\service-worker.js" set "missing=!missing! background"
if not exist "providers\gemini-provider.js" set "missing=!missing! providers"
if not exist "content\content-script.js" set "missing=!missing! content"
if not "!missing!"=="" (
echo ERROR: Missing required folders: !missing!
echo Please ensure you have the complete extension files.
echo.
pause
exit /b 1
)
echo All required files found.
echo.
REM Check for icons
echo Checking icons...
if exist "icons\icon16.svg" (
echo - icon16.svg: OK
) else if exist "icons\icon16.png" (
echo - icon16.png: OK
) else (
echo WARNING: icon16 not found
)
if exist "icons\icon48.svg" (
echo - icon48.svg: OK
) else if exist "icons\icon48.png" (
echo - icon48.png: OK
) else (
echo WARNING: icon48 not found
)
if exist "icons\icon128.svg" (
echo - icon128.svg: OK
) else if exist "icons\icon128.png" (
echo - icon128.png: OK
) else (
echo WARNING: icon128 not found
)
echo.
echo ======================================
echo Installation Check Complete
echo ======================================
echo.
echo To load the extension in Chrome:
echo 1. Open Chrome and go to: chrome://extensions/
echo 2. Enable Developer Mode (top-right)
echo 3. Click "Load unpacked"
echo 4. Select this folder
echo.
echo Next steps:
echo 1. Configure API key in extension Options
echo 2. Pin extension to toolbar
echo 3. Visit any article and click Generate
echo.
echo For detailed instructions, see docs/INSTALL.md
echo.
pause