Skip to content

Commit

Permalink
Add more diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Jul 2, 2023
1 parent d498653 commit dad1b99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
cp ./scripts/create_all_packages.sh ./dist/scripts/create_all_packages.sh
cp ./scripts/package_chrome_extension.sh ./dist/scripts/package_chrome_extension.sh
cp ./scripts/package_firefox_extension.sh ./dist/scripts/package_firefox_extension.sh
cp ./scripts/package_firefoxos_app.sh ./dist/scripts/package_firefoxos_app.sh
cp ./scripts/package_ubuntu_touch_app.sh ./dist/scripts/package_ubuntu_touch_app.sh
cp -rf ./ubuntu_touch dist/ubuntu_touch
Expand Down
6 changes: 6 additions & 0 deletions scripts/create_all_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ cp backgroundscript.js tmp/
rm tmp/manifest.json
mv tmp/manifest.v2.json tmp/manifest.json
scripts/package_chrome_extension.sh -m 2 $DRYRUN $TAG -v $VERSION
echo "The following extensions have been built so far:"
pwd & ls -l build

# Package for Firefox and Firefox OS
# We have to put a unique version string inside the manifest.json (which Chrome might not have accepted)
Expand All @@ -96,12 +98,16 @@ cp manifest.v2.json tmp/manifest.json
sed -i -E "s/$VERSION_TO_REPLACE/$VERSION_FOR_MOZILLA_MANIFEST/" tmp/manifest.json
echo ""
scripts/package_firefox_extension.sh $DRYRUN $TAG -v $VERSION
echo "The following extensions have been built so far:"
pwd & ls -l build
echo ""
scripts/package_firefoxos_app.sh $DRYRUN $TAG -v $VERSION
cp -f ubuntu_touch/* tmp/
sed -i -E "s/$VERSION_TO_REPLACE/$VERSION/" tmp/manifest.json
echo ""
scripts/package_ubuntu_touch_app.sh $DRYRUN $TAG -v $VERSION
echo -e "\nThe following apps have been built:"
pwd & ls -l build

# Change permissions on source files to match those expected by the server
chmod 644 build/*
Expand Down
1 change: 1 addition & 0 deletions scripts/package_chrome_extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ else
zip -r ../build/kiwix-chrome-unsigned-extension-$VERSION.zip www manifest.json LICENSE-GPLv3.txt service-worker.js README.md
fi
cd ..
ls -l build/kiwix-chrome-unsigned-extension-$VERSION.zip
if [ -z $TAG ]; then
# Package the extension with Chrome or Chromium, if we're not packaging a public version
if hash chromium-browser 2>/dev/null
Expand Down

0 comments on commit dad1b99

Please sign in to comment.