#!/bin/sh
# set -x
cd ..
PROJECT_DIR="$(pwd)"
BUILD_DIR="$PROJECT_DIR/target/wix"
BIN_NAME="tp-note"
EXE_NAME="$BIN_NAME.exe"
BIN_VERSION=$(grep -e '^version' Cargo.toml | sed 's/.*"\(.*\)".*/\1/')
rm -R "$BUILD_DIR"
mkdir "$BUILD_DIR"
chmod 777 "$BUILD_DIR"
cp "./tp-note.ico" "$BUILD_DIR"
cp "./target/x86_64-pc-windows-gnu/release/tp-note.exe" "$BUILD_DIR"
cp "./wix/tp-note.wxs" "$BUILD_DIR"