Skip to content

Commit d62549a

Browse files
authored
Merge branch 'master' into master
2 parents a300c07 + d031eea commit d62549a

File tree

17 files changed

+907
-50
lines changed

17 files changed

+907
-50
lines changed

.changeset/brown-boxes-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
fix: add quotation marks around variable in AppArmor profile

.changeset/long-wasps-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-builder": patch
3+
---
4+
5+
fix: support option to override `PublishPolicy` in publish command

.changeset/lovely-moose-worry.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"builder-util-runtime": minor
3+
---
4+
5+
fix: implement industry-standard cross-origin redirect auth handling
6+
7+
Replace hardcoded service-specific hostname checks with sophisticated cross-origin redirect detection that matches industry standards from Python requests library and Apache HttpClient.
8+
9+
**Key improvements:**
10+
- **Case-insensitive hostname comparison** for robust origin detection
11+
- **HTTP→HTTPS upgrade allowance** on standard ports (80→443) for backward compatibility
12+
- **Proper default port handling** that treats implicit and explicit default ports as equivalent
13+
- **Standards-compliant cross-origin detection** following RFC specifications
14+
15+
**Fixes GitHub issue #9207:** GitHub release asset downloads failing with 403 Forbidden when redirected from `api.github.com` to `release-assets.githubusercontent.com` (Azure backend) or other cloud storage services that don't accept GitHub tokens.
16+
17+
The implementation now handles all cross-origin redirect scenarios while maintaining compatibility with legitimate same-origin redirects and industry-standard HTTP→HTTPS upgrades.

.changeset/rotten-bags-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-builder": patch
3+
---
4+
5+
fix: fix argument names mismatch in publish command to make it work

.changeset/selfish-trees-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
fix(nsis): Fix file associations according to the Windows documentation

.changeset/shaggy-garlics-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"builder-util": patch
3+
---
4+
5+
fix: scrubbing more aggressively anything in the logs that MIGHT be password affiliated (handling spaces in secrets)

.changeset/sixty-mice-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
3+
---
4+
5+
fix(deps): update dependency form-data to v4.0.4 [security]

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
fail-fast: false
6868
matrix:
6969
testFiles:
70-
- ArtifactPublisherTest,BuildTest,ExtraBuildTest,RepoSlugTest,binDownloadTest,configurationValidationTest,filenameUtilTest,filesTest,globTest,ignoreTest,macroExpanderTest,mainEntryTest,urlUtilTest,extraMetadataTest,linuxArchiveTest,linuxPackagerTest,HoistedNodeModuleTest,MemoLazyTest,HoistTest,ExtraBuildResourcesTest
70+
- ArtifactPublisherTest,BuildTest,ExtraBuildTest,RepoSlugTest,binDownloadTest,configurationValidationTest,filenameUtilTest,filesTest,globTest,httpExecutorTest,ignoreTest,macroExpanderTest,mainEntryTest,urlUtilTest,extraMetadataTest,linuxArchiveTest,linuxPackagerTest,HoistedNodeModuleTest,MemoLazyTest,HoistTest,ExtraBuildResourcesTest,utilTest
7171
- snapTest,debTest,fpmTest,protonTest
7272
- winPackagerTest,winCodeSignTest,webInstallerTest
7373
- oneClickInstallerTest,assistedInstallerTest

packages/app-builder-lib/templates/linux/apparmor-profile.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
abi <abi/4.0>,
22
include <tunables/global>
33

4-
profile ${executable} "/opt/${sanitizedProductName}/${executable}" flags=(unconfined) {
4+
profile "${executable}" "/opt/${sanitizedProductName}/${executable}" flags=(unconfined) {
55
userns,
66
77
# Site-specific additions and overrides. See local/README for details.

packages/app-builder-lib/templates/nsis/include/FileAssociation.nsh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@
6363
;
6464

6565
!macro APP_ASSOCIATE EXT FILECLASS DESCRIPTION ICON COMMANDTEXT COMMAND
66-
; Backup the previously associated file class
67-
ReadRegStr $R0 SHELL_CONTEXT "Software\Classes\.${EXT}" ""
68-
WriteRegStr SHELL_CONTEXT "Software\Classes\.${EXT}" "${FILECLASS}_backup" "$R0"
69-
7066
WriteRegStr SHELL_CONTEXT "Software\Classes\.${EXT}" "" "${FILECLASS}"
67+
WriteRegNone SHELL_CONTEXT "Software\Classes\.${EXT}\OpenWithProgids" "${FILECLASS}"
7168

7269
WriteRegStr SHELL_CONTEXT "Software\Classes\${FILECLASS}" "" `${DESCRIPTION}`
7370
WriteRegStr SHELL_CONTEXT "Software\Classes\${FILECLASS}\DefaultIcon" "" `${ICON}`
@@ -77,11 +74,8 @@
7774
!macroend
7875

7976
!macro APP_ASSOCIATE_EX EXT FILECLASS DESCRIPTION ICON VERB DEFAULTVERB SHELLNEW COMMANDTEXT COMMAND
80-
; Backup the previously associated file class
81-
ReadRegStr $R0 SHELL_CONTEXT "Software\Classes\.${EXT}" ""
82-
WriteRegStr SHELL_CONTEXT "Software\Classes\.${EXT}" "${FILECLASS}_backup" "$R0"
83-
8477
WriteRegStr SHELL_CONTEXT "Software\Classes\.${EXT}" "" "${FILECLASS}"
78+
WriteRegNone SHELL_CONTEXT "Software\Classes\.${EXT}\OpenWithProgids" "${FILECLASS}"
8579
StrCmp "${SHELLNEW}" "0" +2
8680
WriteRegStr SHELL_CONTEXT "Software\Classes\.${EXT}\ShellNew" "NullFile" ""
8781

@@ -103,10 +97,7 @@
10397

10498

10599
!macro APP_UNASSOCIATE EXT FILECLASS
106-
; Backup the previously associated file class
107-
ReadRegStr $R0 SHELL_CONTEXT "Software\Classes\.${EXT}" `${FILECLASS}_backup`
108-
WriteRegStr SHELL_CONTEXT "Software\Classes\.${EXT}" "" "$R0"
109-
100+
DeleteRegValue SHELL_CONTEXT "Software\Classes\.${EXT}\OpenWithProgids" "${FILECLASS}"
110101
DeleteRegKey SHELL_CONTEXT `Software\Classes\${FILECLASS}`
111102
!macroend
112103

@@ -129,4 +120,4 @@
129120
; Using the system.dll plugin to call the SHChangeNotify Win32 API function so we
130121
; can update the shell.
131122
System::Call "shell32::SHChangeNotify(i,i,i,i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_FLUSH}, 0, 0)"
132-
!macroend
123+
!macroend

0 commit comments

Comments
 (0)