Skip to content

Commit

Permalink
[ICIJ/datashare#360] remove powershell launcher and use batch instead
Browse files Browse the repository at this point in the history
to avoid additionnal actions from user to run as admin
  • Loading branch information
mvanzalu committed Apr 6, 2020
1 parent 636ea5d commit 87b3b04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 3 additions & 1 deletion windows/datashareStandalone.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@echo off

powershell -noexit "& "".\\datashareStandalone.ps1 ${VERSION}"""
cd %APPDATA%\Datashare # needed for /dist

java -cp "dist;\Program Files\Datashare-${VERSION}\Datashare-${VERSION}-all.jar" -DPROD_MODE=true org.icij.datashare.Main -d %APPDATA\Datashare\data --queueType memory --busType memory --dataSourceUrl jdbc:sqlite:file:%APPDATA%\Datashare\dist\datashare.db --configFile %APPDATA%\Datashare\dist\datashare.conf --mode EMBEDDED --elasticsearchDataPath %APPDATA%\Datashare\index
9 changes: 0 additions & 9 deletions windows/datashareStandalone.ps1

This file was deleted.

1 change: 0 additions & 1 deletion windows/installDatashareStandalone.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Function InstallDatashare
exch $R0
SetOutPath "$INSTDIR"
File "datashare.ico"
File "datashareStandalone.ps1"
File /oname=datashareStandalone.bat "dist/datashareStandalone.bat"

# Start Menu
Expand Down

0 comments on commit 87b3b04

Please sign in to comment.