Commit f3cea9f
committed
fix(packaging/macos): detach DMG by attach mount point, not volname
- Capture device and mount point directly from `hdiutil attach` output instead of using hardcoded volume name, preventing conflicts when another volume already uses the volname
- When a volume name collision occurs, macOS mounts the DMG at an alternate path (e.g. "/Volumes/Stitch 1"), but Finder "disk" reference and hardcoded paths would target the wrong volume
- Update Finder layout and eject commands to use the actual mount folder name (`basename "$MNT"`) instead of the requested volname
- Pass captured mount point to `is_detached()` and `detach_dmg()` functions to validate against the correct path
- Add validation that device, mount point, and directory all exist after attach, with detailed error output if attach fails
- Update error messages and comments to reference actual mount path instead of hardcoded "/Volumes/$VOL"1 parent 18a075d commit f3cea9f
5 files changed
Lines changed: 35 additions & 18 deletions
File tree
- packaging/macos
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
54 | 68 | | |
55 | 69 | | |
56 | 70 | | |
| |||
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
62 | | - | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
| |||
85 | 99 | | |
86 | 100 | | |
87 | 101 | | |
88 | | - | |
| 102 | + | |
89 | 103 | | |
90 | 104 | | |
| 105 | + | |
91 | 106 | | |
92 | | - | |
| 107 | + | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
99 | 114 | | |
| 115 | + | |
| 116 | + | |
100 | 117 | | |
101 | | - | |
| 118 | + | |
102 | 119 | | |
103 | 120 | | |
104 | 121 | | |
105 | | - | |
| 122 | + | |
106 | 123 | | |
107 | 124 | | |
108 | | - | |
| 125 | + | |
109 | 126 | | |
110 | 127 | | |
111 | 128 | | |
112 | | - | |
| 129 | + | |
113 | 130 | | |
114 | 131 | | |
115 | 132 | | |
| |||
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
122 | | - | |
123 | | - | |
| 139 | + | |
| 140 | + | |
124 | 141 | | |
125 | 142 | | |
126 | | - | |
| 143 | + | |
127 | 144 | | |
128 | 145 | | |
129 | 146 | | |
130 | 147 | | |
131 | | - | |
| 148 | + | |
132 | 149 | | |
133 | 150 | | |
134 | 151 | | |
135 | 152 | | |
136 | | - | |
| 153 | + | |
137 | 154 | | |
138 | 155 | | |
139 | 156 | | |
| |||
0 commit comments