-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
5 changed files
with
70 additions
and
7 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,46 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build-webos: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install webOS NDK | ||
id: webos-ndk | ||
uses: webosbrew/setup-webos-ndk-action@main | ||
|
||
- name: Install webOS CLI & Compatibility checker | ||
run: sudo npm install -g @webosose/ares-cli @webosbrew/pub-utils | ||
|
||
- name: Build | ||
env: | ||
TOOLCHAIN_FILE: ${{steps.webos-ndk.outputs.cmake-toolchain}} | ||
run: ./tools/webos/easy_build.sh -DCMAKE_BUILD_TYPE=$BUILD_TYPE | ||
|
||
- name: Create Release (webOS) | ||
id: create_release_webos | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: Release ${{ steps.tagName.outputs.tag }} | ||
allowUpdates: true | ||
omitNameDuringUpdate: true | ||
omitBodyDuringUpdate: true | ||
omitPrereleaseDuringUpdate: true | ||
artifacts: dist/*.ipk,dist/*.manifest.json |
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
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 |
---|---|---|
@@ -1 +1,14 @@ | ||
execute_process(COMMAND ares-package "${CPACK_TEMPORARY_DIRECTORY}" -o "${CPACK_PACKAGE_DIRECTORY}") | ||
execute_process(COMMAND ares-package "${CPACK_TEMPORARY_DIRECTORY}" -o "${CPACK_PACKAGE_DIRECTORY}") | ||
|
||
find_program(GEN_MANIFEST_CMD webosbrew-gen-manifest) | ||
if (GEN_MANIFEST_CMD) | ||
execute_process(COMMAND "${GEN_MANIFEST_CMD}" | ||
-a "${CPACK_TEMPORARY_DIRECTORY}/appinfo.json" | ||
-p "${CPACK_PACKAGE_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}.ipk" | ||
-o "${CPACK_PACKAGE_DIRECTORY}/${CPACK_PACKAGE_NAME}.manifest.json" | ||
-i "https://github.com/mariotaku/ihsplay/raw/master/deploy/webos/largeIcon.png" | ||
-l "https://github.com/mariotaku/ihsplay" | ||
) | ||
else () | ||
message("Skip webOS homebrew manifest generation because command line tool is not found") | ||
endif () |
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"id": "org.mariotaku.ihsplay", | ||
"id": "@CPACK_PACKAGE_NAME@", | ||
"type": "native", | ||
"main": "ihsplay", | ||
"icon": "icon.png", | ||
"largeIcon": "largeIcon.png", | ||
"iconColor": "#ffffff", | ||
"title": "IHSplay", | ||
"version": "0.0.1" | ||
"version": "@PROJECT_VERSION@" | ||
} |