Skip to content

Commit

Permalink
fix: tweak portable setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Aug 29, 2024
1 parent 9f655cf commit 3bd369c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions setup_portable_debug.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
REM This script will create dirs and files that will make `pnpm tauri dev` instances of Dorion think they are portable.
REM This is helpful for testing, as you will be able to put built shelter files in ./src-tauri/injection

set BASE_PATH=./src-tauri/target/debug
set BASE_PATH=.\src-tauri\target\debug\

if not exist %BASE_PATH% (
echo "Error: %BASE_PATH% does not exist. Build Dorion at least once first!"
exit /b 1
REM create the directory
mkdir %BASE_PATH%
)

REM Create config.json with an empty JSON object
echo {} > %BASE_PATH%/config.json
REM Create a .portable file
echo "" > %BASE_PATH%\.portable
9 changes: 7 additions & 2 deletions setup_portable_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@

BASE_PATH=./src-tauri/target/debug/

# Create config.json with empty JSON oject
echo "{}" > $BASE_PATH/config.json
# mkdir if needed
if [ ! -d "$BASE_PATH" ]; then
mkdir -p $BASE_PATH
fi

# Create a .portable file
echo "" > $BASE_PATH/.portable

0 comments on commit 3bd369c

Please sign in to comment.