forked from pebcak/ingress-ice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress-ice.cmd
49 lines (47 loc) · 1.26 KB
/
ingress-ice.cmd
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
@echo off
SETLOCAL EnableDelayedExpansion
REM ingress-ice start script by Nikitakun
REM (http://github.com/nibogd/ingress-ice)
REM Double-click this file and follow the
REM instructions
set FILE="%APPDATA%\.ingress-ice.conf"
IF '%1'=='/?' GOTO :help
IF '%1'=='-h' GOTO :help
IF '%1'=='-r' GOTO :config
GOTO :check
:check
IF EXIST %FILE% (
GOTO :start
) else (
copy ice\ingress-ice.conf.sample %FILE%
GOTO :config
)
:config
cls
echo Ingress ICE, Automatic screenshooter for ingress intel map
echo.
echo I've created a blank configuration file for you.
echo Notepad will be opened now. Insert your settings, save the file and close the notepad. Ice will start automatically
echo.
echo You can edit your configuration any time, just start 'reconfigure.cmd'
echo.
notepad %FILE%
:start
cls
echo Existing config file found (%FILE%). Starting ice...
phantom-bin\phantomjs.exe ice\ice.js %FILE%
pause
goto :eof
:help
echo Ingress ICE, an automated screenshooter for ingress intel map
echo Copyright (c) Nikitakun (github.com/nibogd)
echo.
echo Usage:
echo ingress-ice.cmd [-r] [-h]
echo.
echo Options:
echo -r Edit the configuration
echo -h Print this help
echo.
echo Please visit http://ingress.divshot.io/ or http://github.com/nibgd/ingress-ice for additional help
:eof