mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Override files if needed in the build scripts (#425)
This allows the users to continuously run the build script without having to remove `etcher-release` or certain files inside that directory to prevent silly "file exists" errors. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
78fc028ae0
commit
9c755fbb53
@ -107,6 +107,7 @@ function installer_dmg {
|
||||
hdiutil detach $volume_directory || true
|
||||
|
||||
# Create temporal read-write DMG image
|
||||
rm -f $temporal_dmg
|
||||
hdiutil create \
|
||||
-srcfolder $source_directory \
|
||||
-volname "$APPLICATION_NAME" \
|
||||
@ -183,6 +184,7 @@ function installer_dmg {
|
||||
# Convert temporal DMG image into a production-ready
|
||||
# compressed and read-only DMG image.
|
||||
mkdir -p $output_directory
|
||||
rm -f $output_directory/Etcher-darwin-x64.dmg
|
||||
hdiutil convert $temporal_dmg \
|
||||
-format UDZO \
|
||||
-imagekey zlib-level=9 \
|
||||
|
@ -146,6 +146,7 @@ function installer {
|
||||
|
||||
mkdir -p $output_directory
|
||||
app_dir_create $source_directory $architecture $appdir_temporary_location
|
||||
rm -f $output_file
|
||||
./scripts/AppImageAssistant-$architecture $appdir_temporary_location $output_file
|
||||
rm -rf $appdir_temporary_location
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user