mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-09-20 14:26:38 +08:00
Generate build meta
This commit is contained in:
parent
137fae58a6
commit
e4ebc99527
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: tools/LICENSE.txt
|
asset_path: tools/LICENSE.txt
|
||||||
asset_name: LICENSE
|
asset_name: LICENSE
|
||||||
asset_content_type: text/plain
|
asset_content_type: text/plain
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: tools/build_meta.json
|
asset_path: tools/build_meta.json
|
||||||
asset_name: build_meta.json
|
asset_name: build_meta.json
|
||||||
asset_content_type: application/json
|
asset_content_type: application/json
|
||||||
|
@ -53,31 +53,52 @@ echo "" >> $GITHUB_ENV
|
|||||||
|
|
||||||
#Readme
|
#Readme
|
||||||
(
|
(
|
||||||
echo "Update JCEF to ["
|
(
|
||||||
cat ../commit_id.txt
|
echo "Update JCEF to ["
|
||||||
echo "]("
|
cat ../commit_id.txt
|
||||||
cat ../commit_url.txt
|
echo "]("
|
||||||
echo ")"
|
cat ../commit_url.txt
|
||||||
|
echo ")"
|
||||||
|
) | awk '{print}' ORS=''
|
||||||
echo ""
|
echo ""
|
||||||
echo "Build: [GitHub Actions #$4]($3)"
|
echo "Build: [GitHub Actions #$4]($3)"
|
||||||
echo ""
|
(
|
||||||
echo "JCEF version:"
|
echo "JCEF version:"
|
||||||
cat ../commit_id.txt
|
cat ../commit_id.txt
|
||||||
echo ""
|
) | awk '{print}' ORS=''
|
||||||
echo "CEF version:"
|
(
|
||||||
cat ../cef_version.txt
|
echo "CEF version:"
|
||||||
|
cat ../cef_version.txt
|
||||||
|
) | awk '{print}' ORS=''
|
||||||
echo ""
|
echo ""
|
||||||
echo "Changes from previous release:"
|
echo "Changes from previous release:"
|
||||||
echo "\`\`\`"
|
echo "\`\`\`"
|
||||||
cat ../commit_message.txt
|
cat ../commit_message.txt
|
||||||
echo "\`\`\`"
|
echo "\`\`\`"
|
||||||
|
echo "**NOTE:** The sources appended below are the sources of this repository, not JCEF. Please refer to the JCEF commit linked above to obtain sources of this build."
|
||||||
) > ../release_message.md
|
) > ../release_message.md
|
||||||
|
|
||||||
#Add LICENSE
|
#Add LICENSE
|
||||||
mv LICENSE.txt ..
|
mv LICENSE.txt ..
|
||||||
|
|
||||||
#Build build_meta.json
|
#Build build_meta.json
|
||||||
#TODO
|
(
|
||||||
|
echo "{"
|
||||||
|
echo "\"jcef_repository\": \"$1\", "
|
||||||
|
echo "\"jcef_commit\": \"" && cat ../commit_id.txt && echo "\", "
|
||||||
|
echo "\"jcef_commit_long\": \"" && git rev-parse HEAD && echo "\", "
|
||||||
|
echo "\"jcef_url\": \"" && cat ../commit_url.txt && echo "\", "
|
||||||
|
echo "\"cef_version\": \"" && cat ../cef_version.txt && echo "\", "
|
||||||
|
echo "\"actions_url\": \"$3\", "
|
||||||
|
echo "\"actions_number\": \"$4\", "
|
||||||
|
echo "\"filename_linux_amd64\": \"linux-amd64.tar.gz\", "
|
||||||
|
echo "\"filename_linux_i386\": \"linux-i386.tar.gz\", "
|
||||||
|
echo "\"filename_windows_amd64\": \"windows-amd64.tar.gz\", "
|
||||||
|
echo "\"filename_windows_i386\": \"windows-i386.tar.gz\", "
|
||||||
|
echo "\"filename_macosx_amd64\": \"macosx-amd64.tar.gz\", "
|
||||||
|
echo "\"filename_macosx_arm64\": \"macosx-arm64.tar.gz\""
|
||||||
|
echo "}"
|
||||||
|
) | awk '{print}' ORS='' > ../build_meta.json
|
||||||
|
|
||||||
#Cleanup
|
#Cleanup
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user