Skip to content

Commit 927aadc

Browse files
author
Tim Schwab
committed
rearrange files
1 parent 782391c commit 927aadc

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# custom
22

3-
dist/redis/redis-installed
3+
scripts/redis-installed
44

55

66

File renamed without changes.

Diff for: dist/redis/install.bat

-15
This file was deleted.

Diff for: scripts/install.bat

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@echo off
2+
if exist scripts/redis-installed (
3+
echo "Redis is already installed."
4+
) else (
5+
echo "Installing Redis..."
6+
msiexec /i "%cd%\bin\Redis-x64-3.2.100.msi" || goto:failure
7+
echo "Successfully installed Redis."
8+
type NUL > scripts/redis-installed
9+
)
10+
goto:eof
11+
12+
:failure
13+
echo "Could not install Redis."
14+
15+

Diff for: scripts/post-install.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {exec} = require('child_process')
44
switch (process.platform) {
55
case 'win32':
66
// TODO: Move the logic for installing on windows here from the bat file
7-
exec('call dist/redis/install.bat')
7+
exec('call scripts/install.bat')
88
break
99
case 'darwin':
1010
console.log(

0 commit comments

Comments
 (0)