aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/win32/release.tcl
blob: d513b67505657abba9ead0e5f644909a0a9ed1c5 (plain) (blame)
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
set TARGET_DIR c:/temp/sqls-installer
set TMP_DIR c:/temp/SQLiteStudio

set OLDDIR [pwd]

file delete -force ../../output
puts "Compiling app."
exec tclsh ./compile.tcl
puts "Creating portable distro."
puts [exec tclsh ./create_dist_pkg.tcl]

cd ../../output/portable/SQLiteStudio
set VER [lindex [exec sqlitestudiocli --version] 1]
cd $OLDDIR

puts "Generating installator file."
cd ../installer
file delete -force $TARGET_DIR
puts [exec tclsh assemble.tcl $TARGET_DIR --repo]

puts "Installing in temporary location"
file delete -force $TMP_DIR
exec $TARGET_DIR/InstallSQLiteStudio-$VER.exe TargetDir=$TMP_DIR

file rename -force $TMP_DIR $TARGET_DIR/
cd $TARGET_DIR

puts "REMEMBER to zip $TARGET_DIR/SQLiteStudio into sqlitestudio-$VER.zip and uninstall that installation."

cd $OLDDIR