-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
deploy.lisp
45 lines (37 loc) · 1.8 KB
/
deploy.lisp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
(in-package #:org.shirakumo.fraf.kandria)
(defmethod trial:report-on-error ((error org.shirakumo.fraf.mixed.wav:wave-format-error))
(trial:emessage "The file ~a is corrupted and could not be read. Please verify your installation."
(org.shirakumo.fraf.mixed.wav:file error)))
(defmethod trial:report-on-error ((error org.shirakumo.fraf.vorbis:vorbis-error))
(trial:emessage "An audio file is corrupted and could not be read. Please verify your installation."))
(defmethod trial:report-on-error ((error org.shirakumo.depot:depot-condition))
(trial:emessage "A game resource file is corrupted and could not be read. Please verify your installation."))
(defmethod trial:report-on-error ((error org.shirakumo.file-select:file-select-error))
(continue))
(deploy:define-hook (:deploy kandria -1) (directory)
(org.shirakumo.zippy:compress-zip
(pathname-utils:subdirectory (data-root) "world")
(make-pathname :name "world" :type "zip" :defaults directory)
:strip-root T :if-exists :supersede)
(deploy:copy-directory-tree
(pathname-utils:subdirectory (data-root) "mods")
directory)
(deploy:copy-directory-tree
org.shirakumo.alloy.renderers.opengl::*shaders-directory*
(pathname-utils:subdirectory directory "pool" "alloy")
:copy-root NIL))
#+linux
(trial::dont-deploy
org.shirakumo.file-select.gtk::gmodule
org.shirakumo.file-select.gtk::gio
org.shirakumo.file-select.gtk::gtk
org.shirakumo.file-select.gtk::glib)
#+darwin
(trial::dont-deploy
org.shirakumo.file-select.macos::foundation
org.shirakumo.file-select.macos::appkit
org.shirakumo.file-select.macos::cocoa)
(deploy:remove-hook :deploy 'org.shirakumo.fraf.trial.alloy::alloy)
(depot:with-depot (depot (find-world))
(v:info :kandria.quest "Setting up default world, this can take a bit...")
(setup-world NIL depot))