mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-23 12:36:21 -04:00
parent
185cb9c669
commit
4a90691927
5
.github/workflows/Release.yml
vendored
5
.github/workflows/Release.yml
vendored
@ -68,11 +68,12 @@ jobs:
|
|||||||
cp -rf ./ubuntu_touch dist/ubuntu_touch
|
cp -rf ./ubuntu_touch dist/ubuntu_touch
|
||||||
|
|
||||||
# Set up the environment
|
# Set up the environment
|
||||||
- name: Setup environment
|
- name: Setup Clickable for Ubuntu Touch
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get --yes install ./scripts/ubuntu_touch_packages/*.deb
|
sudo apt-get install -y python3-pip
|
||||||
|
pip3 install clickable-ut
|
||||||
|
|
||||||
# Runs the build scripts
|
# Runs the build scripts
|
||||||
- name: Run the build scripts to make extensions and packages
|
- name: Run the build scripts to make extensions and packages
|
||||||
|
@ -18,12 +18,28 @@ while getopts tdv: option; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Packaging .click application for Ubuntu Touch, version $VERSION"
|
echo "Packaging .click application for Ubuntu Touch using Clickable, version $VERSION"
|
||||||
|
|
||||||
# We need to remove the *.woff* files because click considers they are forbidden binaries
|
# Copy the clickable.yaml configuration file to the tmp directory
|
||||||
rm -f "$BASEDIR/tmp/www/fonts"/*.woff*
|
cp "$BASEDIR/ubuntu_touch/clickable.yaml" "$BASEDIR/tmp/"
|
||||||
# We need to remove these files because the --ignore option of click is not supported in the version of Trusty
|
|
||||||
rm -rf "$BASEDIR/tmp/webextension"
|
# Show clickable version for debugging
|
||||||
rm -f "$BASEDIR/tmp/manifest.webapp"
|
echo "Clickable version:"
|
||||||
click build --no-validate "$BASEDIR/tmp"
|
clickable --version
|
||||||
mv kiwix*.click $BASEDIR/build/kiwix-ubuntu-touch-$VERSION.click
|
|
||||||
|
# Build with Clickable using the pure builder
|
||||||
|
echo "Building with Clickable (pure builder for web apps)..."
|
||||||
|
clickable build
|
||||||
|
|
||||||
|
# Find the generated click file
|
||||||
|
CLICK_FILE=$(find "$BASEDIR/tmp" -name "*.click" -type f | head -1)
|
||||||
|
|
||||||
|
if [ -n "$CLICK_FILE" ]; then
|
||||||
|
mv "$CLICK_FILE" "$BASEDIR/build/kiwix-ubuntu-touch-$VERSION.click"
|
||||||
|
echo "Successfully created $BASEDIR/build/kiwix-ubuntu-touch-$VERSION.click"
|
||||||
|
else
|
||||||
|
echo "Error: No .click file was generated"
|
||||||
|
echo "Contents of tmp directory:"
|
||||||
|
ls -la "$BASEDIR/tmp"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22
ubuntu_touch/clickable.yaml
Normal file
22
ubuntu_touch/clickable.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
clickable_minimum_required: 8.0.0
|
||||||
|
framework: ubuntu-sdk-20.04
|
||||||
|
builder: pure
|
||||||
|
|
||||||
|
ignore:
|
||||||
|
- "*.woff"
|
||||||
|
- "*.woff2"
|
||||||
|
- "*.map"
|
||||||
|
- webextension
|
||||||
|
- manifest.webapp
|
||||||
|
- backgroundscript.js
|
||||||
|
- .git
|
||||||
|
- .gitignore
|
||||||
|
- .gitmodules
|
||||||
|
- .clickable
|
||||||
|
|
||||||
|
prebuild: |
|
||||||
|
echo "Prebuild: Cleaning up unwanted files..."
|
||||||
|
rm -f www/fonts/*.woff* || true
|
||||||
|
rm -rf webextension || true
|
||||||
|
rm -f manifest.webapp || true
|
||||||
|
echo "Prebuild complete"
|
@ -6,5 +6,5 @@
|
|||||||
"content_exchange",
|
"content_exchange",
|
||||||
"content_exchange_source"
|
"content_exchange_source"
|
||||||
],
|
],
|
||||||
"policy_version": 16.04
|
"policy_version": 20.04
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"description": "Kiwix is an offline reader for content from Wikipedia, Project Gutenberg, TED Talks, Wikivoyage, Stackexchange, etc.",
|
"description": "Kiwix is an offline reader for content from Wikipedia, Project Gutenberg, TED Talks, Wikivoyage, Stackexchange, etc.",
|
||||||
"architecture": "all",
|
"architecture": "all",
|
||||||
"maintainer": "Kiwix team <contact+ubuntutouch@kiwix.org>",
|
"maintainer": "Kiwix team <contact+ubuntutouch@kiwix.org>",
|
||||||
"framework": "ubuntu-sdk-16.04",
|
"framework": "ubuntu-sdk-20.04",
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"title": "Kiwix",
|
"title": "Kiwix",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user