Another fix: Think I've solved the precompilation reference dupes
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
<description>Remove weird output folder that shouldn't be there</description>
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Deploy for packaging: only on success of build above -->
|
||||
|
||||
<buildpublisher>
|
||||
@@ -84,14 +85,26 @@
|
||||
<alwaysPublish>false</alwaysPublish>
|
||||
</buildpublisher>
|
||||
|
||||
|
||||
<!-- Post-build script (note that it's run in the publication folder) -->
|
||||
|
||||
<exec>
|
||||
<executable>bash</executable>
|
||||
<buildArgs>-c BuildFiles/Building/scripts/postbuild-fixes</buildArgs>
|
||||
<baseDirectory>/home/builder/swarmops/builds/internal</baseDirectory>
|
||||
<description>Prebuild fixes</description>
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Copy /etc/init.d files for backend (and frontend?) -->
|
||||
|
||||
<exec>
|
||||
<executable>bash</executable>
|
||||
<buildArgs>-c "mv /home/builder/swarmops/sources/continuous/repo/Backend/etcinitd /home/builder/swarmops/builds/internal/backend"</buildArgs>
|
||||
<description>Remove weird output folder that shouldn't be there</description>
|
||||
<description>Copying /etc/init.d files for Backend Upstart</description>
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Fix Mono bug: copy all resource files to root resource folder -->
|
||||
|
||||
<exec>
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This file is to be run in the build directory, after publication of the finished build there.
|
||||
|
||||
# FRONTEND FIXES
|
||||
# Remove all source files and re-reference aspx, ascx files to refer to the compiled Swarmops.Frontend assembly instead.
|
||||
|
||||
cd frontend
|
||||
|
||||
find . -iname '*.asp?.*.cs' -delete
|
||||
find . -iname '*.asp?.cs' -delete
|
||||
|
||||
find . -iname '*.as?x' -exec perl -pi -e 's/[Cc]ode[Bb]ehind=\".*?\"//g;' {} \;
|
||||
find . -iname '*.as?x' -exec perl -pi -e 's/[Cc]ode[Ff]ile=\".*?\"//g;' {} \;
|
||||
find . -iname '*.as?x' -exec perl -pi -e 's/[Ii]nherits=\"(.*?)\"/Inherits="$1, Swarmops.Frontend"/g;' {} \;
|
||||
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
@@ -110,8 +110,6 @@ if [ "$COPYFILES" == "yes" ]; then
|
||||
mv $DEPLOYDIR/$TARGETDIR/machineKey.config etc/swarmops/.
|
||||
sed -i 's/\"machineKey.config\"/\"..\/..\/..\/..\/etc\/swarmops\/machineKey.config\"/g' $DEPLOYDIR/$TARGETDIR/web.config
|
||||
echo "UNINITIALIZED" > etc/swarmops/symmetricKey.config
|
||||
echo "Removing all source files..."
|
||||
rm -r $DEPLOYDIR/$TARGETDIR/*.cs
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user