mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
ci: adjust build-electron action to use the newly introduced outDir "./dist" for electron-forge
This commit is contained in:
parent
cc0931b402
commit
67c752c11b
14
.github/actions/build-electron/action.yml
vendored
14
.github/actions/build-electron/action.yml
vendored
@ -97,7 +97,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "Signing DMG file..."
|
echo "Signing DMG file..."
|
||||||
dmg_file=$(find out -name "*.dmg" -print -quit)
|
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
|
||||||
if [ -n "$dmg_file" ]; then
|
if [ -n "$dmg_file" ]; then
|
||||||
echo "Found DMG: $dmg_file"
|
echo "Found DMG: $dmg_file"
|
||||||
# Get the first valid signing identity from the keychain
|
# Get the first valid signing identity from the keychain
|
||||||
@ -125,7 +125,7 @@ runs:
|
|||||||
|
|
||||||
# First check the .app bundle
|
# First check the .app bundle
|
||||||
echo "Looking for .app bundle..."
|
echo "Looking for .app bundle..."
|
||||||
app_bundle=$(find out -name "*.app" -print -quit)
|
app_bundle=$(find ./dist -name "*.app" -print -quit)
|
||||||
if [ -n "$app_bundle" ]; then
|
if [ -n "$app_bundle" ]; then
|
||||||
echo "Found app bundle: $app_bundle"
|
echo "Found app bundle: $app_bundle"
|
||||||
echo "Verifying app bundle signing..."
|
echo "Verifying app bundle signing..."
|
||||||
@ -144,7 +144,7 @@ runs:
|
|||||||
|
|
||||||
# Then check DMG if it exists
|
# Then check DMG if it exists
|
||||||
echo "Looking for DMG..."
|
echo "Looking for DMG..."
|
||||||
dmg_file=$(find out -name "*.dmg" -print -quit)
|
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
|
||||||
if [ -n "$dmg_file" ]; then
|
if [ -n "$dmg_file" ]; then
|
||||||
echo "Found DMG: $dmg_file"
|
echo "Found DMG: $dmg_file"
|
||||||
echo "Verifying DMG signing..."
|
echo "Verifying DMG signing..."
|
||||||
@ -160,7 +160,7 @@ runs:
|
|||||||
|
|
||||||
# Finally check ZIP if it exists
|
# Finally check ZIP if it exists
|
||||||
echo "Looking for ZIP..."
|
echo "Looking for ZIP..."
|
||||||
zip_file=$(find out -name "*.zip" -print -quit)
|
zip_file=$(find ./dist -name "*.zip" -print -quit)
|
||||||
if [ -n "$zip_file" ]; then
|
if [ -n "$zip_file" ]; then
|
||||||
echo "Found ZIP: $zip_file"
|
echo "Found ZIP: $zip_file"
|
||||||
echo "Note: ZIP files are not code signed, but their contents should be"
|
echo "Note: ZIP files are not code signed, but their contents should be"
|
||||||
@ -177,7 +177,7 @@ runs:
|
|||||||
|
|
||||||
# Look for DMG files recursively
|
# Look for DMG files recursively
|
||||||
echo "Looking for DMG files..."
|
echo "Looking for DMG files..."
|
||||||
dmg_file=$(find out -name "*.dmg" -print -quit)
|
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
|
||||||
if [ -n "$dmg_file" ]; then
|
if [ -n "$dmg_file" ]; then
|
||||||
echo "Found DMG: $dmg_file"
|
echo "Found DMG: $dmg_file"
|
||||||
cp "$dmg_file" "upload/TriliumNextNotes-${{ github.ref_name }}-macos-${{ inputs.arch }}.dmg"
|
cp "$dmg_file" "upload/TriliumNextNotes-${{ github.ref_name }}-macos-${{ inputs.arch }}.dmg"
|
||||||
@ -187,7 +187,7 @@ runs:
|
|||||||
|
|
||||||
# Look for ZIP files recursively
|
# Look for ZIP files recursively
|
||||||
echo "Looking for ZIP files..."
|
echo "Looking for ZIP files..."
|
||||||
zip_file=$(find out -name "*.zip" -print -quit)
|
zip_file=$(find ./dist -name "*.zip" -print -quit)
|
||||||
if [ -n "$zip_file" ]; then
|
if [ -n "$zip_file" ]; then
|
||||||
echo "Found ZIP: $zip_file"
|
echo "Found ZIP: $zip_file"
|
||||||
cp "$zip_file" "upload/TriliumNextNotes-${{ github.ref_name }}-macos-${{ inputs.arch }}.zip"
|
cp "$zip_file" "upload/TriliumNextNotes-${{ github.ref_name }}-macos-${{ inputs.arch }}.zip"
|
||||||
@ -199,7 +199,7 @@ runs:
|
|||||||
echo "Collecting artifacts for ${{ inputs.os }}..."
|
echo "Collecting artifacts for ${{ inputs.os }}..."
|
||||||
for ext in ${{ inputs.extension }}; do
|
for ext in ${{ inputs.extension }}; do
|
||||||
echo "Looking for .$ext files..."
|
echo "Looking for .$ext files..."
|
||||||
file=$(find out -name "*.$ext" -print -quit)
|
file=$(find ./dist -name "*.$ext" -print -quit)
|
||||||
if [ -n "$file" ]; then
|
if [ -n "$file" ]; then
|
||||||
echo "Found $file for extension $ext"
|
echo "Found $file for extension $ext"
|
||||||
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.$ext"
|
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.$ext"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user