Disable Edge build

main
Elbert Alias 7 years ago
parent 3eeaeb9579
commit 43911f62c5

@ -69,45 +69,45 @@ zip -qr ../../../build/wappalyzer_webextension.zip . \
popd > /dev/null popd > /dev/null
# Edge # Edge
echo "Building Edge application..." #echo "Building Edge application..."
#
pushd build > /dev/null #pushd build > /dev/null
#
webextension_dir="../$webextension_dir" #webextension_dir="../$webextension_dir"
manifest_dir="Wappalyzer/edgeextension/manifest" #manifest_dir="Wappalyzer/edgeextension/manifest"
#
mv $webextension_dir/manifest.json $webextension_dir/manifest.webextension.json #mv $webextension_dir/manifest.json $webextension_dir/manifest.webextension.json
mv $webextension_dir/manifest.edge.json $webextension_dir/manifest.json #mv $webextension_dir/manifest.edge.json $webextension_dir/manifest.json
#
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$version\"/" $webextension_dir/manifest.json #sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$version\"/" $webextension_dir/manifest.json
#
manifoldjs -l debug -p edgeextension -f edgeextension -m $webextension_dir/manifest.json #manifoldjs -l debug -p edgeextension -f edgeextension -m $webextension_dir/manifest.json
#
# Replace symlinks with actual files ## Replace symlinks with actual files
rm $manifest_dir/Extension/images/icons #rm $manifest_dir/Extension/images/icons
#
cp ../src/apps.json $manifest_dir/Extension #cp ../src/apps.json $manifest_dir/Extension
cp ../src/wappalyzer.js $manifest_dir/Extension/js #cp ../src/wappalyzer.js $manifest_dir/Extension/js
cp -r ../src/icons $manifest_dir/Extension/images #cp -r ../src/icons $manifest_dir/Extension/images
#
mv $webextension_dir/manifest.json $webextension_dir/manifest.edge.json #mv $webextension_dir/manifest.json $webextension_dir/manifest.edge.json
mv $webextension_dir/manifest.webextension.json $webextension_dir/manifest.json #mv $webextension_dir/manifest.webextension.json $webextension_dir/manifest.json
#
sed -i 's/INSERT-YOUR-PACKAGE-IDENTITY-NAME-HERE/1591Wappalyzer.Wappalyzer/' $manifest_dir/appxmanifest.xml #sed -i 's/INSERT-YOUR-PACKAGE-IDENTITY-NAME-HERE/1591Wappalyzer.Wappalyzer/' $manifest_dir/appxmanifest.xml
sed -i 's/INSERT-YOUR-PACKAGE-IDENTITY-PUBLISHER-HERE/D240C22F-A6C1-45DF-BF7B-4C835064DF51/' $manifest_dir/appxmanifest.xml #sed -i 's/INSERT-YOUR-PACKAGE-IDENTITY-PUBLISHER-HERE/D240C22F-A6C1-45DF-BF7B-4C835064DF51/' $manifest_dir/appxmanifest.xml
sed -i 's/INSERT-YOUR-PACKAGE-PROPERTIES-PUBLISHERDISPLAYNAME-HERE/Wappalyzer/' $manifest_dir/appxmanifest.xml #sed -i 's/INSERT-YOUR-PACKAGE-PROPERTIES-PUBLISHERDISPLAYNAME-HERE/Wappalyzer/' $manifest_dir/appxmanifest.xml
sed -i 's/Version="0.\([^"]\+\)/Version="\1.0/' $manifest_dir/appxmanifest.xml #sed -i 's/Version="0.\([^"]\+\)/Version="\1.0/' $manifest_dir/appxmanifest.xml
#
cp $webextension_dir/images/icon_44.png $manifest_dir/Assets/Square44x44Logo.png #cp $webextension_dir/images/icon_44.png $manifest_dir/Assets/Square44x44Logo.png
cp $webextension_dir/images/icon_150.png $manifest_dir/Assets/Square150x150Logo.png #cp $webextension_dir/images/icon_150.png $manifest_dir/Assets/Square150x150Logo.png
cp $webextension_dir/images/icon_50.png $manifest_dir/Assets/StoreLogo.png #cp $webextension_dir/images/icon_50.png $manifest_dir/Assets/StoreLogo.png
#
manifoldjs -l debug -p edgeextension package $manifest_dir #manifoldjs -l debug -p edgeextension package $manifest_dir
#
mv Wappalyzer/edgeextension/package/edgeExtension.appx wappalyzer_edge.appx #mv Wappalyzer/edgeextension/package/edgeExtension.appx wappalyzer_edge.appx
#
rm -rf Wappalyzer #rm -rf Wappalyzer
#
popd > /dev/null #popd > /dev/null
echo "Done (v$version)." echo "Done (v$version)."