fix packaging issues

This commit is contained in:
xenia 2021-01-10 05:26:41 -05:00
parent 333eddc88b
commit a60f83cd16
2 changed files with 7 additions and 5 deletions

View File

@ -291,11 +291,13 @@
(-> file-transfer? integer?)
(enforce-subject 'client)
(log-server-info "new project upload")
(define out-file (make-temporary-file))
(define extract-dir (make-temporary-file "rkttmp~a" 'directory))
(define out-file (make-temporary-file "cfupload~a"))
(define extract-dir (make-temporary-file "cfupload~a" 'directory))
(with-handlers ([exn? (lambda (ex)
(delete-directory/files out-file)
(delete-directory/files extract-dir)
(with-handlers ([exn:fail? void])
(delete-directory/files out-file))
(with-handlers ([exn:fail? void])
(delete-directory/files extract-dir))
(raise ex))])
(define out-port (open-output-file out-file #:exists 'truncate))
(file-transfer-connect upload-ft out-port)

2
dist/PKGBUILD vendored
View File

@ -44,7 +44,7 @@ build() {
_arch="$(gcc -dumpmachine)"
_raco="$srcdir/crossfire/agent-deployment/arch_$_arch/vendor/racket-$_pkgver_emb_racket/bin/raco"
"$_raco" pkg install --skip-installed --auto "$srcdir/crossfire/crossfire"
"$_raco" exe -o "$srcdir/crossfire/crossfire-server" "$srcdir/crossfire/crossfire/server.rkt"
"$_raco" exe ++lang north -o "$srcdir/crossfire/crossfire-server" "$srcdir/crossfire/crossfire/server.rkt"
"$_raco" exe -o "$srcdir/crossfire/crossfire-client" "$srcdir/crossfire/crossfire/client.rkt"
}