Skip to content

Commit

Permalink
Merge tag 'v1.11.0' into sc
Browse files Browse the repository at this point in the history
* Remove Piwik support ([\#8835](matrix-org/matrix-react-sdk#8835)).
* Support compilation on more Linux targets ([\element-hq#376](element-hq#376)). Contributed by @jcgruenhage.
* Document how to configure a custom `home.html`. ([\#21066](element-hq/element-web#21066)). Contributed by @johannes-krude.
* Move New Search Experience out of beta ([\#8859](matrix-org/matrix-react-sdk#8859)). Contributed by @justjanne.
* Switch video rooms to spotlight layout when in PiP mode ([\#8912](matrix-org/matrix-react-sdk#8912)). Fixes element-hq/element-web#22574.
* Live location sharing - render message deleted tile for redacted beacons ([\#8905](matrix-org/matrix-react-sdk#8905)). Contributed by @kerryarchibald.
* Improve view source dialog style ([\#8883](matrix-org/matrix-react-sdk#8883)). Fixes element-hq/element-web#22636. Contributed by @luixxiul.
* Improve integration manager dialog style ([\#8888](matrix-org/matrix-react-sdk#8888)). Fixes element-hq/element-web#22642. Contributed by @luixxiul.
* Implement MSC3827: Filtering of `/publicRooms` by room type ([\#8866](matrix-org/matrix-react-sdk#8866)). Fixes element-hq/element-web#22578.
* Show chat panel when opening a video room with unread messages ([\#8812](matrix-org/matrix-react-sdk#8812)). Fixes element-hq/element-web#22527.
* Live location share - forward latest location ([\#8860](matrix-org/matrix-react-sdk#8860)). Contributed by @kerryarchibald.
* Allow integration managers to validate user identity after opening ([\#8782](matrix-org/matrix-react-sdk#8782)). Contributed by @Half-Shot.
* Create a common header on right panel cards on BaseCard ([\#8808](matrix-org/matrix-react-sdk#8808)). Contributed by @luixxiul.
* Integrate searching public rooms and people into the new search experience ([\#8707](matrix-org/matrix-react-sdk#8707)). Fixes element-hq/element-web#21354 and element-hq/element-web#19349. Contributed by @justjanne.
* Bring back waveform for voice messages and retain seeking ([\#8843](matrix-org/matrix-react-sdk#8843)). Fixes element-hq/element-web#21904.
* Improve colors in settings  ([\#7283](matrix-org/matrix-react-sdk#7283)).
* Keep draft in composer when a slash command syntax errors ([\#8811](matrix-org/matrix-react-sdk#8811)). Fixes element-hq/element-web#22384.
* Release video rooms as a beta feature ([\#8431](matrix-org/matrix-react-sdk#8431)).
* Clarify logout key backup warning dialog. Contributed by @notramo. ([\#8741](matrix-org/matrix-react-sdk#8741)). Fixes element-hq/element-web#15565. Contributed by @MadLittleMods.
* Slightly improve the look of the `Message edits` dialog ([\#8763](matrix-org/matrix-react-sdk#8763)). Fixes element-hq/element-web#22410.
* Add support for MD / HTML in room topics ([\#8215](matrix-org/matrix-react-sdk#8215)). Fixes element-hq/element-web#5180. Contributed by @Johennes.
* Live location share - link to timeline tile from share warning ([\#8752](matrix-org/matrix-react-sdk#8752)). Contributed by @kerryarchibald.
* Improve composer visiblity ([\#8578](matrix-org/matrix-react-sdk#8578)). Fixes vector-im/element-web#22072 and element-hq/element-web#17362.
* Makes the avatar of the user menu non-draggable ([\#8765](matrix-org/matrix-react-sdk#8765)). Contributed by @luixxiul.
* Improve widget buttons behaviour and layout ([\#8734](matrix-org/matrix-react-sdk#8734)).
* Use AccessibleButton for 'Reset All' link button on SetupEncryptionBody ([\#8730](matrix-org/matrix-react-sdk#8730)). Contributed by @luixxiul.
* Adjust message timestamp position on TimelineCard in non-bubble layouts ([\#8745](matrix-org/matrix-react-sdk#8745)). Fixes element-hq/element-web#22426. Contributed by @luixxiul.
* Use AccessibleButton for 'In reply to' link button on ReplyChain ([\#8726](matrix-org/matrix-react-sdk#8726)). Fixes element-hq/element-web#22407. Contributed by @luixxiul.
* Live location share - enable reply and react to tiles ([\#8721](matrix-org/matrix-react-sdk#8721)). Contributed by @kerryarchibald.
* Change dash to em dash issues fixed ([\#8455](matrix-org/matrix-react-sdk#8455)). Fixes element-hq/element-web#21895. Contributed by @goelesha.
* Upgrade to Electron 19 ([\element-hq#372](element-hq#372)). Fixes element-hq/element-web#21147.
* Reduce video rooms log spam ([\#22665](element-hq/element-web#22665)).
* Connect to Jitsi unmuted by default ([\#22660](element-hq/element-web#22660)). Fixes element-hq/element-web#22637.
* Work around a Jitsi bug with display name encoding ([\#22525](element-hq/element-web#22525)). Fixes element-hq/element-web#22521.
* Make invite dialogue fixed height ([\#8945](matrix-org/matrix-react-sdk#8945)).
* Correct issue with tab order in new search experience ([\#8919](matrix-org/matrix-react-sdk#8919)). Fixes element-hq/element-web#22670. Contributed by @justjanne.
* Clicking location replies now redirects to the replied event instead of opening the map ([\#8918](matrix-org/matrix-react-sdk#8918)). Fixes element-hq/element-web#22667.
* Keep clicks on pills within the app ([\#8917](matrix-org/matrix-react-sdk#8917)). Fixes element-hq/element-web#22653.
* Don't overlap tile bubbles with timestamps in modern layout ([\#8908](matrix-org/matrix-react-sdk#8908)). Fixes element-hq/element-web#22425.
* Connect to Jitsi unmuted by default ([\#8909](matrix-org/matrix-react-sdk#8909)).
* Maximize width value of display name on TimelineCard with IRC/modern layout ([\#8904](matrix-org/matrix-react-sdk#8904)). Fixes element-hq/element-web#22651. Contributed by @luixxiul.
* Align the avatar and the display name on TimelineCard ([\#8900](matrix-org/matrix-react-sdk#8900)). Contributed by @luixxiul.
* Remove inline margin from reactions row on IRC layout ([\#8891](matrix-org/matrix-react-sdk#8891)). Fixes element-hq/element-web#22644. Contributed by @luixxiul.
* Align "From a thread" on search result panel on IRC layout ([\#8892](matrix-org/matrix-react-sdk#8892)). Fixes element-hq/element-web#22645. Contributed by @luixxiul.
* Display description of E2E advanced panel as subsection text ([\#8889](matrix-org/matrix-react-sdk#8889)). Contributed by @luixxiul.
* Remove inline end margin from images on file panel ([\#8886](matrix-org/matrix-react-sdk#8886)). Fixes element-hq/element-web#22640. Contributed by @luixxiul.
* Disable option to `Quote` when we don't have sufficient permissions ([\#8893](matrix-org/matrix-react-sdk#8893)). Fixes element-hq/element-web#22643.
* Add padding to font scaling loader for message bubble layout ([\#8875](matrix-org/matrix-react-sdk#8875)). Fixes element-hq/element-web#22626. Contributed by @luixxiul.
* Set 100% max-width to display name on reply tiles ([\#8867](matrix-org/matrix-react-sdk#8867)). Fixes element-hq/element-web#22615. Contributed by @luixxiul.
* Fix alignment of pill letter ([\#8874](matrix-org/matrix-react-sdk#8874)). Fixes element-hq/element-web#22622. Contributed by @luixxiul.
* Move the beta pill to the right side and display the pill on video room only ([\#8873](matrix-org/matrix-react-sdk#8873)). Fixes element-hq/element-web#22619 and element-hq/element-web#22620. Contributed by @luixxiul.
* Stop using absolute property to place beta pill on RoomPreviewCard ([\#8872](matrix-org/matrix-react-sdk#8872)). Fixes element-hq/element-web#22617. Contributed by @luixxiul.
* Make the pill text single line ([\#8744](matrix-org/matrix-react-sdk#8744)). Fixes element-hq/element-web#22427. Contributed by @luixxiul.
* Hide overflow of public room description on spotlight dialog result ([\#8870](matrix-org/matrix-react-sdk#8870)). Contributed by @luixxiul.
* Fix position of message action bar on the info tile on TimelineCard in message bubble layout ([\#8865](matrix-org/matrix-react-sdk#8865)). Fixes element-hq/element-web#22614. Contributed by @luixxiul.
* Remove inline start margin from display name on reply tiles on TimelineCard ([\#8864](matrix-org/matrix-react-sdk#8864)). Fixes element-hq/element-web#22613. Contributed by @luixxiul.
* Improve homeserver dropdown dialog styling ([\#8850](matrix-org/matrix-react-sdk#8850)). Fixes element-hq/element-web#22552. Contributed by @justjanne.
* Fix crash when drawing blurHash for portrait videos PSB-139 ([\#8855](matrix-org/matrix-react-sdk#8855)). Fixes element-hq/element-web#22597. Contributed by @andybalaam.
* Fix grid blowout on pinned event tiles ([\#8816](matrix-org/matrix-react-sdk#8816)). Fixes element-hq/element-web#22543. Contributed by @luixxiul.
* Fix temporary sync errors if there's weird settings stored in account data ([\#8857](matrix-org/matrix-react-sdk#8857)).
* Fix reactions row overflow and gap between reactions ([\#8813](matrix-org/matrix-react-sdk#8813)). Fixes element-hq/element-web#22093. Contributed by @luixxiul.
* Fix issues with the Create new room button in Spotlight ([\#8851](matrix-org/matrix-react-sdk#8851)). Contributed by @justjanne.
* Remove margin from E2E icon between avatar and hidden event ([\#8584](matrix-org/matrix-react-sdk#8584)). Fixes element-hq/element-web#22186. Contributed by @luixxiul.
* Fix waveform on a message bubble ([\#8852](matrix-org/matrix-react-sdk#8852)). Contributed by @luixxiul.
* Location sharing maps are now loaded after reconnection ([\#8848](matrix-org/matrix-react-sdk#8848)). Fixes element-hq/element-web#20993.
* Update the avatar mask so it doesn’t cut off spaces’ avatars anymore ([\#8849](matrix-org/matrix-react-sdk#8849)). Contributed by @justjanne.
* Add a bit of safety around timestamp handling for threads ([\#8845](matrix-org/matrix-react-sdk#8845)).
* Remove top margin from event tile on a narrow viewport ([\#8814](matrix-org/matrix-react-sdk#8814)). Contributed by @luixxiul.
* Fix keyboard shortcuts on settings tab being wrapped ([\#8825](matrix-org/matrix-react-sdk#8825)). Fixes element-hq/element-web#22547. Contributed by @luixxiul.
* Add try-catch around blurhash loading ([\#8830](matrix-org/matrix-react-sdk#8830)).
* Prevent new composer from overflowing from non-breakable text ([\#8829](matrix-org/matrix-react-sdk#8829)). Fixes element-hq/element-web#22507. Contributed by @justjanne.
* Use common subheading on sidebar user settings tab ([\#8823](matrix-org/matrix-react-sdk#8823)). Contributed by @luixxiul.
* Fix clickable area of advanced toggle on appearance user settings tab ([\#8820](matrix-org/matrix-react-sdk#8820)). Fixes element-hq/element-web#22546. Contributed by @luixxiul.
* Disable redacting reactions if we don't have sufficient permissions  ([\#8767](matrix-org/matrix-react-sdk#8767)). Fixes element-hq/element-web#22262.
* Update the live timeline when the JS SDK resets it ([\#8806](matrix-org/matrix-react-sdk#8806)). Fixes element-hq/element-web#22421.
* Fix flex blowout on image reply ([\#8809](matrix-org/matrix-react-sdk#8809)). Fixes element-hq/element-web#22509 and element-hq/element-web#22510. Contributed by @luixxiul.
* Enable background color on hover for chat panel and thread panel ([\#8644](matrix-org/matrix-react-sdk#8644)). Fixes element-hq/element-web#22273. Contributed by @luixxiul.
* Fix #20026: send read marker as soon as we change it ([\#8802](matrix-org/matrix-react-sdk#8802)). Fixes element-hq/element-web#20026. Contributed by @andybalaam.
* Allow AppTiles to shrink as much as necessary ([\#8805](matrix-org/matrix-react-sdk#8805)). Fixes element-hq/element-web#22499.
* Make widgets in video rooms immutable again ([\#8803](matrix-org/matrix-react-sdk#8803)). Fixes element-hq/element-web#22497.
* Use MessageActionBar style declarations on pinned message card ([\#8757](matrix-org/matrix-react-sdk#8757)). Fixes element-hq/element-web#22444. Contributed by @luixxiul.
* Expire video member events after 1 hour ([\#8776](matrix-org/matrix-react-sdk#8776)).
* Name lists on invite dialog ([\#8046](matrix-org/matrix-react-sdk#8046)). Fixes element-hq/element-web#21400 and element-hq/element-web#19463. Contributed by @luixxiul.
* Live location share - show loading UI for beacons with start timestamp in the future ([\#8775](matrix-org/matrix-react-sdk#8775)). Fixes element-hq/element-web#22437. Contributed by @kerryarchibald.
* Fix scroll jump issue with the composer ([\#8788](matrix-org/matrix-react-sdk#8788)). Fixes element-hq/element-web#22464.
* Fix the incorrect nesting of download button on MessageActionBar ([\#8785](matrix-org/matrix-react-sdk#8785)). Contributed by @luixxiul.
* Revert link color change in composer ([\#8784](matrix-org/matrix-react-sdk#8784)). Fixes element-hq/element-web#22468.
* Fix 'Logout' inline link on the splash screen ([\#8770](matrix-org/matrix-react-sdk#8770)). Fixes element-hq/element-web#22449. Contributed by @luixxiul.
* Fix disappearing widget poput button when changing the widget layout ([\#8754](matrix-org/matrix-react-sdk#8754)).
* Reduce gutter with the new read receipt UI ([\#8736](matrix-org/matrix-react-sdk#8736)). Fixes element-hq/element-web#21890.
* Add ellipsis effect to hidden beacon status ([\#8755](matrix-org/matrix-react-sdk#8755)). Fixes element-hq/element-web#22441. Contributed by @luixxiul.
* Make the pill on the basic message composer compatible with display name in RTL languages ([\#8758](matrix-org/matrix-react-sdk#8758)). Fixes element-hq/element-web#22445. Contributed by @luixxiul.
* Prevent the banner text from being selected, replacing the spacing values with the variable ([\#8756](matrix-org/matrix-react-sdk#8756)). Fixes element-hq/element-web#22442. Contributed by @luixxiul.
* Ensure the first device on a newly-registered account gets cross-signed properly ([\#8750](matrix-org/matrix-react-sdk#8750)). Fixes element-hq/element-web#21977. Contributed by @duxovni.
* Hide live location option in threads composer ([\#8746](matrix-org/matrix-react-sdk#8746)). Fixes element-hq/element-web#22424. Contributed by @kerryarchibald.
* Make sure MessageTimestamp is not hidden by EventTile_line on TimelineCard ([\#8748](matrix-org/matrix-react-sdk#8748)). Contributed by @luixxiul.
* Make PiP motion smoother and react to window resizes correctly ([\#8747](matrix-org/matrix-react-sdk#8747)). Fixes element-hq/element-web#22292.
* Prevent Invite and DevTools dialogs from being cut off ([\#8646](matrix-org/matrix-react-sdk#8646)). Fixes element-hq/element-web#20911 and undefined/matrix-react-sdk#8165. Contributed by @justjanne.
* Squish event bubble tiles less ([\#8740](matrix-org/matrix-react-sdk#8740)).
* Use random widget IDs for video rooms ([\#8739](matrix-org/matrix-react-sdk#8739)). Fixes element-hq/element-web#22417.
* Fix read avatars overflow from the right chat panel with a maximized widget on bubble message layout ([\#8470](matrix-org/matrix-react-sdk#8470)). Contributed by @luixxiul.
* Fix `CallView` crash ([\#8735](matrix-org/matrix-react-sdk#8735)). Fixes element-hq/element-web#22394.
  • Loading branch information
su-ex committed Jul 7, 2022
2 parents a953103 + 762ad2d commit f3aa303
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 114 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ jobs:
- name: Build App
run: "yarn build --publish never -w ${{ matrix.build-args }}"

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: win-${{ matrix.arch }}
path: dist
retention-days: 1

linux:
strategy:
Expand Down Expand Up @@ -112,6 +119,13 @@ jobs:

- name: Build App
run: "yarn build --publish never"

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: linux-sqlcipher-${{ matrix.sqlcipher }}
path: dist
retention-days: 1

macos:
name: macOS (universal)
Expand Down Expand Up @@ -145,3 +159,10 @@ jobs:

- name: Build App
run: "yarn build:universal --publish never"

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: macos
path: dist
retention-days: 1
26 changes: 6 additions & 20 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,9 @@ on:
types: [ opened, edited, labeled, unlabeled, synchronize ]
concurrency: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }}
jobs:
changelog:
name: Preview Changelog
if: github.event.action != 'synchronize'
runs-on: ubuntu-latest
steps:
- uses: matrix-org/allchange@main
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}

enforce-label:
name: Enforce Labels
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: yogevbd/[email protected]
with:
REQUIRED_LABELS_ANY: "T-Defect,T-Enhancement,T-Task"
BANNED_LABELS: "X-Blocked"
BANNED_LABELS_DESCRIPTION: "Preventing merge whilst PR is marked blocked!"
action:
uses: matrix-org/matrix-js-sdk/.github/workflows/pull_request.yaml@develop
with:
labels: "T-Defect,T-Enhancement,T-Task"
secrets:
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
111 changes: 111 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions element.io/nightly/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"uisi_autorageshake_app": "element-auto-uisi",
"showLabsSettings": true,
"piwik": {
"url": "https://piwik.riot.im/",
"siteId": 1,
"policyUrl": "https://element.io/cookie-policy"
},
"roomDirectory": {
"servers": [
"matrix.org",
Expand Down Expand Up @@ -49,8 +44,10 @@
"projectApiKey": "phc_Jzsm6DTm6V2705zeU5dcNvQDlonOR68XvX2sh1sEOHO",
"apiHost": "https://posthog.element.io"
},
"privacy_policy_url": "https://element.io/cookie-policy",
"features": {
"feature_spotlight": true
"feature_spotlight": true,
"feature_video_rooms": true
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}
6 changes: 1 addition & 5 deletions element.io/release/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
]
},
"showLabsSettings": false,
"piwik": {
"url": "https://piwik.riot.im/",
"siteId": 1,
"policyUrl": "https://element.io/cookie-policy"
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
Expand All @@ -45,5 +40,6 @@
"projectApiKey": "phc_Jzsm6DTm6V2705zeU5dcNvQDlonOR68XvX2sh1sEOHO",
"apiHost": "https://posthog.element.io"
},
"privacy_policy_url": "https://element.io/cookie-policy",
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}
86 changes: 82 additions & 4 deletions scripts/hak/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { GLIBC, MUSL, family as processLibC } from "detect-libc";

// We borrow Rust's target naming scheme as a way of expressing all target
// details in a single string.
// See https://doc.rust-lang.org/rustc/platform-support.html.
Expand All @@ -23,18 +25,28 @@ export type TargetId =
'universal-apple-darwin' |
'i686-pc-windows-msvc' |
'x86_64-pc-windows-msvc' |
'x86_64-unknown-linux-gnu';
'i686-unknown-linux-musl' |
'i686-unknown-linux-gnu' |
'x86_64-unknown-linux-musl' |
'x86_64-unknown-linux-gnu' |
'aarch64-unknown-linux-musl' |
'aarch64-unknown-linux-gnu' |
'powerpc64le-unknown-linux-musl' |
'powerpc64le-unknown-linux-gnu';

// Values are expected to match those used in `process.platform`.
export type Platform = 'darwin' | 'linux' | 'win32';

// Values are expected to match those used in `process.arch`.
export type Arch = 'arm64' | 'ia32' | 'x64' | 'universal';
export type Arch = 'arm64' | 'ia32' | 'x64' | 'ppc64' | 'universal';

// Values are expected to match those used by Visual Studio's `vcvarsall.bat`.
// See https://docs.microsoft.com/cpp/build/building-on-the-command-line?view=msvc-160#vcvarsall-syntax
export type VcVarsArch = 'amd64' | 'arm64' | 'x86';

// Values are expected to match those used in `detect-libc`.
export type LibC = GLIBC | MUSL;

export type Target = {
id: TargetId;
platform: Platform;
Expand All @@ -46,6 +58,11 @@ export type WindowsTarget = Target & {
vcVarsArch: VcVarsArch;
};

export type LinuxTarget = Target & {
platform: 'linux';
libC: LibC;
};

export type UniversalTarget = Target & {
arch: 'universal';
subtargets: Target[];
Expand Down Expand Up @@ -87,10 +104,60 @@ const x8664PcWindowsMsvc: WindowsTarget = {
vcVarsArch: 'amd64',
};

const x8664UnknownLinuxGnu: Target = {
const x8664UnknownLinuxGnu: LinuxTarget = {
id: 'x86_64-unknown-linux-gnu',
platform: 'linux',
arch: 'x64',
libC: 'glibc',
};

const x8664UnknownLinuxMusl: LinuxTarget = {
id: 'x86_64-unknown-linux-musl',
platform: 'linux',
arch: 'x64',
libC: 'musl',
};

const i686UnknownLinuxGnu: LinuxTarget = {
id: 'i686-unknown-linux-gnu',
platform: 'linux',
arch: 'ia32',
libC: 'glibc',
};

const i686UnknownLinuxMusl: LinuxTarget = {
id: 'i686-unknown-linux-musl',
platform: 'linux',
arch: 'ia32',
libC: 'musl',
};

const aarch64UnknownLinuxGnu: LinuxTarget = {
id: 'aarch64-unknown-linux-gnu',
platform: 'linux',
arch: 'arm64',
libC: 'glibc',
};

const aarch64UnknownLinuxMusl: LinuxTarget = {
id: 'aarch64-unknown-linux-musl',
platform: 'linux',
arch: 'arm64',
libC: 'musl',
};

const powerpc64leUnknownLinuxGnu: LinuxTarget = {
id: 'powerpc64le-unknown-linux-gnu',
platform: 'linux',
arch: 'ppc64',
libC: 'glibc',
};

const powerpc64leUnknownLinuxMusl: LinuxTarget = {
id: 'powerpc64le-unknown-linux-musl',
platform: 'linux',
arch: 'ppc64',
libC: 'musl',
};

export const TARGETS: Record<TargetId, Target> = {
Expand All @@ -102,13 +169,24 @@ export const TARGETS: Record<TargetId, Target> = {
'i686-pc-windows-msvc': i686PcWindowsMsvc,
'x86_64-pc-windows-msvc': x8664PcWindowsMsvc,
// Linux
'i686-unknown-linux-musl': i686UnknownLinuxMusl,
'i686-unknown-linux-gnu': i686UnknownLinuxGnu,
'x86_64-unknown-linux-musl': x8664UnknownLinuxMusl,
'x86_64-unknown-linux-gnu': x8664UnknownLinuxGnu,
'aarch64-unknown-linux-musl': aarch64UnknownLinuxMusl,
'aarch64-unknown-linux-gnu': aarch64UnknownLinuxGnu,
'powerpc64le-unknown-linux-musl': powerpc64leUnknownLinuxMusl,
'powerpc64le-unknown-linux-gnu': powerpc64leUnknownLinuxGnu,
};

export function getHost(): Target {
return Object.values(TARGETS).find(target => (
target.platform === process.platform &&
target.arch === process.arch
target.arch === process.arch &&
(
process.platform !== 'linux' ||
(target as LinuxTarget).libC === processLibC
)
));
}

Expand Down
Loading

0 comments on commit f3aa303

Please sign in to comment.