love-actions / love-actions-macos-portable

Build macOS .app(zipped), .dmg and .pkg packages
2 stars 2 forks source link

iconutil: command not found #1

Closed ninovanhooff closed 1 year ago

ninovanhooff commented 2 years ago

Something wrong with the runner image?

Log:

Run rm -rf ./love-actions-macos-portable/love/platform/xcode/Images.xcassets/OS\ X\ AppIcon.appiconset/*.png /home/runner/work/_temp/3d9ce120-f19e-420e-a112-a46562291674.sh: line 2: iconutil: command not found Error: Process completed with exit code 127.

Note: this is my first github action. I'm unsure whether the output of the Love actions bare package can be picked up by the maxos portable step.

Regardless it seems like the iconutil executable is missing?

My repo is public and here is a link to the failed run: https://github.com/ninovanhooff/Gravity-Express-Editor/runs/8039335452?check_suite_focus=true

My workflow:

[Skip to content](https://github.com/ninovanhooff/Gravity-Express-Editor/actions/runs/2934718831/workflow#start-of-content)
Search or jump to…
[Pull requests](https://github.com/pulls)
[Issues](https://github.com/issues)
[Marketplace](https://github.com/marketplace)
[Explore](https://github.com/explore)

@[ninovanhooff](https://github.com/ninovanhooff) 
ninovanhooff
/
[Gravity-Express-Editor](https://github.com/ninovanhooff/Gravity-Express-Editor)
Private
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Settings
uncomment icon-path CI #5
Summary
Usage
Workflow file
Jobs
build
Workflow file for this run
.github/workflows/blank.yml at f57664d
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the "main" branch
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3

      # Runs a set of commands using the runners shell
      - name: Run a multi-line script
        run: |
          echo Add other actions to build,
          echo test, and deploy your project.
      - name: Love actions bare package
        # You may pin to the exact commit or the version.
        uses: 26F-Studio/love-actions-core@v1.0.0
        with:
          # List of folder & file paths to be built Don't need global quotes, separated by spaces Looks like: ./assets/ ./logics/ ./main.lua ./config.lua
          [build](https://github.com/ninovanhooff/Gravity-Express-Editor/runs/8039335452?check_suite_focus=true)-list: ./Source
          # Path to the .love package file Looks like ./dist/release/my_game.love
          # package-path: # optional, default is ./game.love
      - name: Love actions for macOS portable
        # You may pin to the exact commit or the version.
        uses: 26F-Studio/love-actions-macos-portable@v1.0.0
        with:
          # App display name
          app-name: Gravity Express Editor
          # App bundle id
          bundle-id: com.ninovanhooff.gravityexpress.editor
          # App copyright info
          copyright: Nino van Hooff
          # Icon path Should be .icns format Would be used in platform/xcode/Images.xcassets/OS X AppIcon.appiconset
          icon-path: ./osx_icon.icns
          # LÖVE git ref Could be commit hash, tags or branch name
          # love-ref: # optional, default is c35356c841976eb6f370347b81eec845d5520338
          # Git patch file path for the LÖVE repo The patch must start from `love-ref` You can use `git diff` to get the patch file
          # love-patch: # optional
          # Love package. Nino The previous step also uses the default, so leave it at default.
          # love-package: # optional, default is ./game.love
          # Path to the libs folder
          # libs-path: # optional List of file paths to be added to `Copy Bundle Resources` build phase Don't need global quotes, separated by spaces Looks like: ./assets/ ./logics/ ./main.lua ./config.lua
          # extra-assets: # optional
          # Base name of the package Would be used to rename products
          product-name: Gravity Express Editor
          # App version string Use 3 numbers seperated by dots Looks like 3.2.1
          version-string: 1.0.0
          # Nino: Extra installer and developer options omitted
ninovanhooff commented 2 years ago

The issue was resolved by changing runs-on: from ubuntu-latest to macos-11. Before closing this issue, I suggest mentioning in the Readme that this requires a macos runner.

ParticleG commented 1 year ago

The issue was resolved by changing runs-on: from ubuntu-latest to macos-11. Before closing this issue, I suggest mentioning in the Readme that this requires a macos runner.

Okay, I'll add examples in readme.md