Fix macOS build (#911)

This commit is contained in:
Kevin 2022-01-21 10:48:21 +01:00 committed by GitHub
parent bd3363acde
commit 0405690177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,7 @@ defmodule AppBuilder.MacOS do
File.mkdir_p!(Path.join([app_bundle_path, "Contents", "Resources"]))
File.rename!(release.path, Path.join([app_bundle_path, "Contents", "Resources", "rel"]))
File.mkdir_p!("tmp")
launcher_src_path = "tmp/Launcher.swift"
File.write!(launcher_src_path, launcher())
launcher_path = Path.join([app_bundle_path, "Contents", "MacOS", app_name <> "Launcher"])