File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ UPDATE_JSON="$({
7373 if (!value.updateAvailable) process.exit(1);
7474 if (value.releaseUrl !== "https://github.com/Fei-Away/Codex-Dream-Skin/releases/latest") process.exit(1);
7575' " $UPDATE_JSON "
76- if /usr/bin/grep -R -n -E ' xattr|spctl[[:space:]]+--master-disable' \
76+ if /usr/bin/grep -R -n -E --exclude-dir=' .build' \
77+ ' xattr|spctl[[:space:]]+--master-disable' \
7778 " $ROOT /menubar-app" " $ROOT /scripts/build-menubar-app.sh" " $ROOT /scripts/build-dmg.sh" > /dev/null; then
7879 printf ' Native distribution must not bypass Gatekeeper or remove quarantine attributes.\n' >&2
7980 exit 1
Original file line number Diff line number Diff line change @@ -228,18 +228,21 @@ try {
228228 return
229229 }
230230
231- $atomicReplacePath = Join-Path $temporaryRoot ' atomic-replace.txt'
231+ $atomicTestRoot = Join-Path $temporaryRoot ' atomic-writer'
232+ New-Item - ItemType Directory - Path $atomicTestRoot | Out-Null
233+ $atomicReplacePath = Join-Path $atomicTestRoot ' atomic-replace.txt'
232234 [System.IO.File ]::WriteAllText($atomicReplacePath , ' before' )
233235 Write-DreamSkinUtf8FileAtomically - Path $atomicReplacePath - Content ' after'
234236 if ((Read-DreamSkinUtf8File - Path $atomicReplacePath ) -cne ' after' ) {
235237 throw ' Atomic writer did not replace an existing file under Windows PowerShell.'
236238 }
237- $atomicArtifacts = @ (Get-ChildItem - LiteralPath $temporaryRoot - Force |
239+ $atomicArtifacts = @ (Get-ChildItem - LiteralPath $atomicTestRoot - Force |
238240 Where-Object { $_.FullName -ne $atomicReplacePath })
239241 if ($atomicArtifacts.Count -ne 0 ) {
240242 throw ' Atomic writer left internal replacement artifacts behind.'
241243 }
242244 Remove-Item - LiteralPath $atomicReplacePath - Force
245+ Remove-Item - LiteralPath $atomicTestRoot - Force
243246
244247 $realAtomicCleanup = (Get-Command Remove-DreamSkinAtomicArtifact - CommandType Function).ScriptBlock
245248 $previousWarningPreference = $WarningPreference
You can’t perform that action at this time.
0 commit comments