[packaging] Fix path to wrapper.bat for Windows MSI
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 13 Jun 2017 14:18:21 +0000 (16:18 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 13 Jun 2017 14:18:21 +0000 (16:18 +0200)
packaging/Windows/defs/mono
packaging/Windows/defs/mono64

index 2897ea1eaf4a5a677aad321e2bfae4c1af6142f9..0aec09d9ea3aaf55b04eb5283fd72ed6f540e9cd 100755 (executable)
@@ -75,7 +75,7 @@ install()
                                then EXENAME=$(basename `grep -ho '.:/.*\.exe' $i`)
                        fi
                        if [ -f "../lib/mono/${RUNTIME}/${EXENAME}" ]
-                               then sed "s#@@RUNTIME@@#${RUNTIME}#g" $(dirname $0)/../resources/wrapper.bat > $i.bat
+                               then sed "s#@@RUNTIME@@#${RUNTIME}#g" ${REPODIR}/packaging/Windows/resources/wrapper.bat > $i.bat
                                sed -i "s#@@COMMAND@@#${EXENAME}#g" $i.bat
                                sed -i 's#/#\\#g' $i.bat
                        fi
index cec3177f3fb71c39d4f903ed6f7f2c1faf23fcb0..bdfaabbbfacf0bd7f31680ce8e52691b1ee844f6 100755 (executable)
@@ -70,7 +70,7 @@ install()
                                then EXENAME=$(basename `grep -ho '.:/.*\.exe' $i`)
                        fi
                        if [ -f "../lib/mono/${RUNTIME}/${EXENAME}" ]
-                               then sed "s#@@RUNTIME@@#${RUNTIME}#g" $(dirname $0)/../resources/wrapper.bat > $i.bat
+                               then sed "s#@@RUNTIME@@#${RUNTIME}#g" ${REPODIR}/packaging/Windows/resources/wrapper.bat > $i.bat
                                sed -i "s#@@COMMAND@@#${EXENAME}#g" $i.bat
                                sed -i 's#/#\\#g' $i.bat
                        fi