File: release.tcl

package info (click to toggle)
sqlitestudio 3.4.21%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 54,880 kB
  • sloc: ansic: 406,208; cpp: 123,872; yacc: 2,692; tcl: 497; sh: 462; xml: 426; makefile: 19
file content (30 lines) | stat: -rw-r--r-- 790 bytes parent folder | download
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