Skip to content

Conversation

fanquake
Copy link
Member

@fanquake fanquake commented Mar 2, 2021

Now that we are using Focal for gitian builds, and have NSIS 3.0+ available (also in Guix), we can create installers that support unicode.

Unicode is only becoming the NSIS default beginning with the 3.07 release, so we need to set this attribute to get support.

Should close: #13817

Gitian builds:

b8553615b6b4be5e4459e03796e700b30b5d198a7f184f27be6983ff901b5592  bitcoin-9086e0dd3c92-win-unsigned.tar.gz
a6b024a5a68e0196e8e118168c918285e820f2d0ffe9c38db680580459da8bf3  bitcoin-9086e0dd3c92-win64-debug.zip
ff4003d4f61127c707e44b5235eaf924b30351f20cde27e775131982a1b4cf92  bitcoin-9086e0dd3c92-win64-setup-unsigned.exe
1876bee55fa9ea99b91203975c13d0ad8a046b4b58068bde41c977fd1d12de13  bitcoin-9086e0dd3c92-win64.zip
000f2778f8f166a89b4ab35f155156c1c34800be6e47d29b5308043c50128392  src/bitcoin-9086e0dd3c92.tar.gz
d650a9b8f2dd1df777bf42439dfcbcf6bc358e30ec148b9992a18b39f76b1ecf  bitcoin-core-win-22-res.yml

Now that we are using Focal for gitian builds, and have NSIS 3.0+
available (also in Guix), we can create installers that support unicode.

Unicode is only becoming the default beginning with the 3.07 release,
https://nsis.sourceforge.io/Docs/AppendixF.html#v3.07-cl,
so we need to set this attribute to get support.

Should close: bitcoin#13817

Co-authored-by: Chun Kuan Lee <ken2812221@gmail.com>
@hebasto
Copy link
Member

hebasto commented Mar 2, 2021

Concept ACK.

@maflcko
Copy link
Member

maflcko commented Mar 2, 2021

@maflcko
Copy link
Member

maflcko commented Mar 2, 2021

Might test if I find the windows vm again

@hebasto
Copy link
Member

hebasto commented Mar 2, 2021

Version in focal is 3.05 too: https://packages.ubuntu.com/focal/nsis

@laanwj
Copy link
Member

laanwj commented Mar 2, 2021

About time!
Unicode? whoa, we're in the future now 😄

ACK 9086e0d

@fanquake
Copy link
Member Author

fanquake commented Mar 2, 2021

Guix build @ 9086e0d:

bash-5.1# find output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
10377ec7e6c54d0713623b987353d6724186103a5b6af6d9fe8eb7c543fb56bd  output/bitcoin-9086e0dd3c92-win-unsigned.tar.gz
e3dfd4e62381dcf8a7fda0045640449e04dfdc1eac8fbede9f82276a33909248  output/bitcoin-9086e0dd3c92-win64-debug.zip
20411b4507e1a35fb6b1d19027883de64fbcb14cadd878a18e242cd65d54ec74  output/bitcoin-9086e0dd3c92-win64-setup-unsigned.exe
b929a62ed8d1ec4203b4d1d8f20a6c42883e583cda83b9b954b8076d64065f62  output/bitcoin-9086e0dd3c92-win64.zip
000f2778f8f166a89b4ab35f155156c1c34800be6e47d29b5308043c50128392  output/src/bitcoin-9086e0dd3c92.tar.gz

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9086e0d, tested on Windows 10 Pro (20H2, build 19042.804):

Windows 10_02_03_2021_15_01_37

Compare to #13817 (comment)

@hebasto
Copy link
Member

hebasto commented Mar 2, 2021

Guix build:

$ find output -type f -name *$(git rev-parse --short HEAD)*.* -print0 | sort -z | xargs -r0 sha256sum
e3dfd4e62381dcf8a7fda0045640449e04dfdc1eac8fbede9f82276a33909248  output/bitcoin-9086e0dd3c92-win64-debug.zip
20411b4507e1a35fb6b1d19027883de64fbcb14cadd878a18e242cd65d54ec74  output/bitcoin-9086e0dd3c92-win64-setup-unsigned.exe
b929a62ed8d1ec4203b4d1d8f20a6c42883e583cda83b9b954b8076d64065f62  output/bitcoin-9086e0dd3c92-win64.zip
10377ec7e6c54d0713623b987353d6724186103a5b6af6d9fe8eb7c543fb56bd  output/bitcoin-9086e0dd3c92-win-unsigned.tar.gz
000f2778f8f166a89b4ab35f155156c1c34800be6e47d29b5308043c50128392  output/src/bitcoin-9086e0dd3c92.tar.gz

@maflcko
Copy link
Member

maflcko commented Mar 2, 2021

Please upload the mismatching binaries. Otherwise this is harder to debug.

@hebasto
Copy link
Member

hebasto commented Mar 2, 2021

@MarcoFalke

Please upload the mismatching binaries. Otherwise this is harder to debug.

Binaries (#21333 (comment), #21333 (comment)) match, only sort orders differ, no?

@fanquake
Copy link
Member Author

fanquake commented Mar 3, 2021

@hebasto you'll need to update your output command so that the sorting matches every other contributor that has been posting hashes.

@fanquake fanquake merged commit 3a8fc51 into bitcoin:master Mar 3, 2021
@fanquake fanquake deleted the windows_unicode branch March 3, 2021 01:58
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 3, 2021
9086e0d build: set Unicode true for NSIS installer (fanquake)

Pull request description:

  Now that we are using Focal for gitian builds, and have [NSIS 3.0+ available](https://packages.ubuntu.com/focal/nsis) (also in Guix), we can create installers that [support unicode](https://nsis.sourceforge.io/Docs/Chapter4.html#aunicodetarget).

  Unicode is only becoming the NSIS default [beginning with the 3.07 release](https://nsis.sourceforge.io/Docs/AppendixF.html#v3.07-cl), so we need to set this attribute to get support.

  Should close: bitcoin#13817

  Gitian builds:
  ```bash
  b8553615b6b4be5e4459e03796e700b30b5d198a7f184f27be6983ff901b5592  bitcoin-9086e0dd3c92-win-unsigned.tar.gz
  a6b024a5a68e0196e8e118168c918285e820f2d0ffe9c38db680580459da8bf3  bitcoin-9086e0dd3c92-win64-debug.zip
  ff4003d4f61127c707e44b5235eaf924b30351f20cde27e775131982a1b4cf92  bitcoin-9086e0dd3c92-win64-setup-unsigned.exe
  1876bee55fa9ea99b91203975c13d0ad8a046b4b58068bde41c977fd1d12de13  bitcoin-9086e0dd3c92-win64.zip
  000f2778f8f166a89b4ab35f155156c1c34800be6e47d29b5308043c50128392  src/bitcoin-9086e0dd3c92.tar.gz
  d650a9b8f2dd1df777bf42439dfcbcf6bc358e30ec148b9992a18b39f76b1ecf  bitcoin-core-win-22-res.yml
  ```

ACKs for top commit:
  laanwj:
    ACK 9086e0d
  hebasto:
    ACK 9086e0d, tested on Windows 10 Pro (20H2, build 19042.804):

Tree-SHA512: cc7b7ca05877571d0a29a7d36e40279f54d886d8ab27facfa722c2ee95a1fc06c2bad8ef1eb1980d283ae981659d737021a46c8f4618e24d510b5ab384990e09
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Mar 11, 2021
Summary:
```
Now that we are using Focal for gitian builds, and have NSIS 3.0+
available (also in Guix), we can create installers that support unicode.

Unicode is only becoming the default beginning with the 3.07 release,
https://nsis.sourceforge.io/Docs/AppendixF.html#v3.07-cl,
so we need to set this attribute to get support.

Should close: #13817
```

On Debian 10 the nsis version is 3.04, so we should be able to use the
feature.

Backport of [[ bitcoin/bitcoin#21333 | core#21333 ]]

Test Plan: Run the windows gitian build twice, ensure it's deterministic.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9318
deadalnix pushed a commit to Bitcoin-ABC/secp256k1 that referenced this pull request Mar 12, 2021
Summary:
```
Now that we are using Focal for gitian builds, and have NSIS 3.0+
available (also in Guix), we can create installers that support unicode.

Unicode is only becoming the default beginning with the 3.07 release,
https://nsis.sourceforge.io/Docs/AppendixF.html#v3.07-cl,
so we need to set this attribute to get support.

Should close: #13817
```

On Debian 10 the nsis version is 3.04, so we should be able to use the
feature.

Backport of [[ bitcoin/bitcoin#21333 | core#21333 ]]

Test Plan: Run the windows gitian build twice, ensure it's deterministic.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9318
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NSIS: Error launching the installer when login name contains some non-ascii characters
4 participants