-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu | ||
USER root | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN apt update | ||
RUN apt -y install curl gnupg wget unzip | ||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - | ||
RUN chmod +x /entrypoint.sh | ||
RUN apt -y install nodejs | ||
RUN npm install npm@latest -g | ||
RUN npm i -g @bubblewrap/cli | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'PWA to APK action' | ||
description: 'Github Action for Converting your PWA to APK.' | ||
branding: | ||
icon: 'package' | ||
color: 'orange' | ||
inputs: | ||
project-root-folder: | ||
description: 'Root folder for project generated by bubblewrap-cli' | ||
required: true | ||
outputs: | ||
message: | ||
description: "Status message from build script" | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.project-root-folder }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh -l | ||
|
||
echo "========================= Changing directory to $1 =========================" | ||
cd $1 | ||
echo "========================= Building APK, it may take 3-4 minutes or more =========================" | ||
( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | bubblewrap build --skipPwaValidation --skipSigning | ||
cp ./*.apk .. | ||
echo "========================= APK building finished =========================" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# Running PWA to apk action for apk generation | ||
- name: Running PWA to APK action | ||
uses: sharadcodes/[email protected] | ||
- name: Running PWA2Apk | ||
uses: ./.github/actions/pwa2Apk | ||
with: | ||
project-root-folder: "." | ||
# This one below is a seperate action which I'm using for releasing apk | ||
|