summarylogtreecommitdiffstats
path: root/moonray.install
diff options
context:
space:
mode:
authoradro792023-08-26 13:13:59 +0200
committerCaleb Maclennan2023-12-26 12:14:27 +0300
commit68018bd419b3931e2e097368214e1f58811f1f8c (patch)
treec6ba1eaa89198b8470e462a3046afaa17ad42204 /moonray.install
parenta7405af77904020abc76a918ee71d9526f90da5b (diff)
downloadaur-68018bd419b3931e2e097368214e1f58811f1f8c.tar.gz
Add post_install() hook pregenerating shaders
Diffstat (limited to 'moonray.install')
-rw-r--r--moonray.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/moonray.install b/moonray.install
new file mode 100644
index 000000000000..ea4039a6a98b
--- /dev/null
+++ b/moonray.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo "Generating Shader Jsons"
+ /opt/moonray/bin/rdl2_json_exporter --out /opt/moonray/shader_json/ --sparse
+}
+
+post_upgrade() {
+ echo "Generating Shader Jsons"
+ /opt/moonray/bin/rdl2_json_exporter --out /opt/moonray/shader_json/ --sparse
+}
+
+post_remove() {
+ rm -r /opt/moonray
+}