Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
14b38253
Commit
14b38253
authored
8 years ago
by
Cam Saül
Browse files
Options
Downloads
Patches
Plain Diff
Fix rare "device" busy error when building DMG
[ci skip]
parent
6996053f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/osx-release
+5
-2
5 additions, 2 deletions
bin/osx-release
with
5 additions
and
2 deletions
bin/osx-release
+
5
−
2
View file @
14b38253
...
...
@@ -171,7 +171,7 @@ sub edit_release_notes {
remove_tree
(
$release_notes
);
copy
(
get_file_or_die
('
bin/templates/release-notes.html.template
'),
$release_notes
)
or
die
$!
;
system
('
emacs
',
'
-nw
',
get_file_or_die
(
$release_notes
))
==
0
or
die
$!
;
system
('
nano
',
get_file_or_die
(
$release_notes
))
==
0
or
die
$!
;
}
...
...
@@ -247,6 +247,9 @@ sub finalize_dmg {
system
('
sync
');
system
('
sync
');
# wait a few seconds for the sync to complete so DMG isn't "busy" when we try to unmount it
system
('
sleep
',
'
5
');
# unmount the temp DMG
announce
"
Unmounting
$device
...
";
system
('
hdiutil
',
'
detach
',
$device
)
==
0
or
die
$!
;
...
...
@@ -297,7 +300,7 @@ sub announce_on_slack {
Readonly
my
$slack_url
=>
config
('
slackWebhookURL
')
or
return
;
Readonly
my
$version
=>
version
();
Readonly
my
$awsURL
=>
'
https://s3.amazonaws.com/
'
.
config
('
awsBucket
')
.
'
/
'
.
upload_subdir
()
.
'
/Metabase.dmg
';
my
$text
=
"
Metabase OS X
$version
'
Tumultuous
Toucan' Is Now Available!
\n\n
"
.
my
$text
=
"
Metabase OS X
$version
'
Complexity-Embracing
Toucan' Is Now Available!
\n\n
"
.
"
Get it here:
$awsURL
\n\n
";
open
(
my
$file
,
get_file_or_die
(
$release_notes
))
or
die
$!
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment