Skip to content

Commit

Permalink
Add script for version managing; add version to GUI header
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Tishchenko <[email protected]>
  • Loading branch information
t7ko committed Dec 18, 2021
1 parent e2d9810 commit f770185
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions set-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

full_ver="$1"
free_form_ver="$2"

echo "Updating to full version $full_ver and free-form version $free_form_ver"

sed -i '/public static final String VERSION/s/".*"/"'"$free_form_ver"'"/' src/com/chschmid/jdotxt/Jdotxt.java

sed -i \
-e "/<fileVersion>\|<productVersion>/s/>.*</>$full_ver</" \
-e "/<txtFileVersion>\|<txtProductVersion>/s/>.*</>$free_form_ver</" \
-e "/<originalFilename>/s/>.*</>jdotxt-$free_form_ver-java8.exe</" \
launch4j.xml
2 changes: 1 addition & 1 deletion src/com/chschmid/jdotxt/gui/JdotxtGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public JdotxtGUI() {

private void initGUI() {
// Style main window
this.setTitle(lang.getWord("jdotxt"));
this.setTitle(lang.getWord("jdotxt") + " (v" + Jdotxt.VERSION + ")");
this.setIconImage(icon.getImage());
this.setBackground(Color.WHITE);

Expand Down

0 comments on commit f770185

Please sign in to comment.