Skip to content

Commit

Permalink
FranzCross: use own version for update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Oct 31, 2023
1 parent 4781e53 commit 9945181
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FranzCross/auto-update.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

(require franz/auto-updater
franz/release
franz/version
(prefix-in http: net/http-easy)
net/sendurl
racket/class
Expand All @@ -12,7 +11,8 @@
"common.rkt"
"mixin.rkt"
"preference.rkt"
"thread.rkt")
"thread.rkt"
"version.rkt")

(provide
start-auto-updater
Expand All @@ -39,7 +39,7 @@
(make-auto-updater
do-update-available
#:arch (system-arch)
#:version franz-version
#:version franz-cross-version
#:frequency (and check-for-updates? check-interval))))
(when (and check-for-updates? check-now?)
(thread*
Expand Down Expand Up @@ -241,7 +241,7 @@
port->string)
(make-Release
#:arch (system-arch)
#:version franz-version
#:version franz-cross-version
#:mac-url "https://franz.defn.io/releases/Franz%201.0.0006.universal.dmg"
#:linux-url #f
#:windows-url #f))))
3 changes: 3 additions & 0 deletions FranzCross/info.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#lang info

(define version "1.4")
(define build-number 1)

(define collection "FranzCross")
(define deps '("base"
"buid"
Expand Down
22 changes: 22 additions & 0 deletions FranzCross/version.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#lang racket/base

(require (for-syntax racket/base
racket/format
setup/getinfo))

(provide
franz-cross-version)

(begin-for-syntax
(define (info-ref id)
((get-info '("FranzCross")) id)))

(define-syntax (get-version stx)
(datum->syntax stx (format "~a.~a"
(info-ref 'version)
(~r #:min-width 4
#:pad-string "0"
(info-ref 'build-number)))))

(define franz-cross-version
(get-version))

0 comments on commit 9945181

Please sign in to comment.