Skip to content

Compatibility zh HK

ArchiBot edited this page Nov 12, 2021 · 41 revisions

ๅ…ผๅฎนๆ€ง

ASF is a C# application that is running on .NET platform. ้€™ๆ„ๅ‘ณ่‘— ASF ไธฆ้ž็›ดๆŽฅ่ขซ็ทจ่ญฏ็‚บๅฏไพ› CPU ๅŸท่กŒ็š„โ€‹**ๆฉŸๅ™จ็ขผ**๏ผŒ่€Œๆ˜ฏ่ขซ็ทจ่ญฏ็‚บ ้€š็”จไธญ้–“่ชž่จ€๏ผŒไธ€็จฎ้œ€่ฆ็›ธๆ‡‰็š„้‹่กŒ็’ฐๅขƒๆ‰่ƒฝๅŸท่กŒ็š„่ชž่จ€ใ€‚

้€™็จฎๆ–นๆณ•ๅ…ทๆœ‰ๅทจๅคง็š„ๅ„ชๅ‹ข๏ผŒๅ› ็‚บ CIL ๆ˜ฏ็จ็ซ‹ไบŽๅนณๅฐ็š„๏ผŒ้€™ๅฐฑๆ˜ฏ็‚บไป€้บผ ASF ๅฏไปฅๅœจ่จฑๅคšๅฏ็”จ็š„ๆ“ไฝœ็ณป็ตฑ (ๅฐคๅ…ถๆ˜ฏ Windowsใ€Linux ๅ’Œ OS X) ไธŠๆœฌๅœฐ้‹่กŒ็š„ๅŽŸๅ› ใ€‚ASFไธๅƒ…ไธ้œ€่ฆๆจกๆ“ฌ้‹่กŒ๏ผŒ้‚„ๆ”ฏๆดๆ‰€ๆœ‰่ˆ‡ๅนณๅฐ็›ธ้—œๅ’Œ่ˆ‡็กฌ้ซ”็›ธ้—œ็š„ๅ„ชๅŒ–๏ผŒๅฆ‚ CPU SSE ใ€‚ ๅ› ๆญค๏ผŒASFๅฏไปฅๅฏฆ็พๅ“่ถŠ็š„ๆ€ง่ƒฝๅ’Œๅ„ชๅŒ–๏ผŒๅŒๆ™‚ไป็„ถๆไพ›ๅฎŒ็พŽ็š„ๅ…ผๅฎนๆ€งๅ’Œๅฏ้ ๆ€งใ€‚

้€™ไนŸๆ„ๅ‘ณ่‘—้‹่กŒ ASF ๆฒ’ๆœ‰็‰นๅฎš็š„ๆ“ไฝœ็ณป็ตฑ่ฆๆฑ‚๏ผŒๅ› ็‚บๅฎƒ้œ€่ฆ็š„ๅชๆ˜ฏ็ณป็ตฑไธŠ็š„้‹่กŒ็’ฐๅขƒ่€Œ้ž็ณป็ตฑๆœฌ่บซใ€‚ As long as that runtime is executing ASF code properly, it does not matter whether underlying OS is Windows, Linux, OS X, BSD, Sony Playstation 4, Nintendo Wii or your toaster - as long as there is .NET for it, there is ASF for it.

However, regardless of where you run ASF, you must ensure that your target platform has .NET prerequisites installed. ้€™ไบ›้ƒฝๆ˜ฏ็ขบไฟ้‹่กŒ็’ฐๅขƒๅŠŸ่ƒฝๆญฃๅธธ็š„ๅบ•ๅฑคๅบซ๏ผŒไนŸๆ˜ฏ็ขบไฟ ASF ่ƒฝๅค ็ฌฌไธ€ๆ™‚้–“ๅทฅไฝœ็š„็ต•ๅฐๆ ธๅฟƒใ€‚ ๅพˆๆœ‰ๅฏ่ƒฝๆ‚จๅทฒ็ถ“ๅฎ‰่ฃไบ†ๅ…ถไธญ็š„ไธ€ไบ› (็”š่‡ณๅ…จ้ƒจ)ใ€‚


ASF ๅŒ…

ASF ๆœ‰ๅ…ฉ็จฎไธป่ฆ็š„ๆ‰“ๅŒ…ๆ–นๅผโ”€โ”€GenericๅŒ…ไปฅๅŠ OS-specific ๅŒ…๏ผˆ้‡ๅฐ็‰นๅฎšๆ“ไฝœ็ณป็ตฑ็š„ๅŒ…๏ผ‰ใ€‚ ๅพžๅŠŸ่ƒฝไธŠไพ†่ฌ›๏ผŒ้€™ๅ…ฉ็จฎๅŒ…ๆ˜ฏๅฎŒๅ…จไธ€ๆจฃ็š„๏ผŒ้ƒฝ่ƒฝๅค ่‡ชๅ‹•้€ฒ่กŒๆ›ดๆ–ฐใ€‚ ๅ”ฏไธ€็š„ๅ€ๅˆฅๅฐฑๆ˜ฏ GenericๅŒ…ไธญไธๅŒ…ๅซ** OS-specific **ๅŒ…ๅ…ง้™„ๅธถ็š„่ƒฝไฝฟ ASF ้‹่กŒ็š„็’ฐๅขƒใ€‚


Generic

Generic ๅŒ…็จ็ซ‹ไบŽๅนณๅฐ๏ผŒๆ‰€ไปฅๅฎƒไธๅŒ…ๅซไปปไฝ•็‰นๅฎšๆ–ผ้›ป่…ฆ็š„ไปฃ็ขผใ€‚ This setup requires from you to have .NET runtime already installed on your OS in appropriate version. We all know how troublesome it is to keep dependencies up-to-date, therefore this package is here mainly for people that already use .NET and don't want to duplicate their runtime solely for ASF if they can make use of what they have installed already. Generic package also allows you to run ASF anywhere where you can obtain working implementation of .NET runtime, regardless if there exists OS-specific ASF build for it, or not.

It's not recommended to use generic flavour if you're casual or even advanced user that just wants to make ASF work and not dig into .NET technical details. ไนŸๅฐฑๆ˜ฏ่ชช๏ผŒๅฆ‚ๆžœไฝ ็žญ่งฃGenericๅŒ…๏ผŒ้‚ฃไฝ ๅฏไปฅไฝฟ็”จๅฎƒ๏ผŒไธ็„ถไธ‹้บตๆ‰€ไป‹็ดน็š„ OS-specific ๅŒ…ๆ‰ๆ˜ฏๆ›ดๅˆ้ฉ็š„ใ€‚

.NET ๆก†ๆžถๅŒ…

In addition to generic package mentioned above, there is also generic-netf package which is built on top of .NET Framework and not .NET (Core). This package is a legacy variant that provides missing compatibility known from ASF V2 times, and can be run e.g. with Mono, while .NET generic package can't as of today.

้€šๅธธ๏ผŒๆ‚จๆ‡‰่ฉฒๅ„˜้‡้ฟๅ…ไฝฟ็”จๆญค็จ‹ๅผๅŒ…๏ผŒๅ› ็‚บๅคงๅคšๆ•ธๆ“ไฝœ็ณป็ตฑ้ƒฝๅฎŒๅ…จ๏ผˆไธฆไธ”ๆ›ดๅฅฝๅœฐ๏ผ‰ๆ”ฏๆดไธŠ้ขๆๅˆฐ็š„GenericๅŒ…ใ€‚ In fact, this package makes sense to be used only on platforms that lack working .NET runtime, while having working Mono implementation. Examples of such platforms include linux-x86 (32-bit i386/i686 linux), as well as linux-armel (ARMv6 boards found e.g. in Raspberry Pi 0 & 1), all of which do not have official working .NET runtime as of today.

As the time goes on with more platforms being supported by .NET and less compatibility between .NET Framework and .NET, generic-netf package will be entirely replaced with generic one in the future. Please refrain from using it if you can use any .NET package instead, as generic-netf is missing a lot of functionality and compatibility compared to .NET versions, and it'll be only less functional as the time goes on. We offer support for this package only on machines that can't use generic variant above (e.g. linux-x86), and only with up-to-date runtime (e.g. latest Mono).


OS-specific

้™คไบ† Generic ๅŒ…ไธญๅŒ…ๅซ็š„่จ—็ฎกไปฃ็ขผไน‹ๅค–๏ผŒOS-specific ๅŒ…้‚„ๅŒ…ๆ‹ฌๆŒ‡ๅฎšๅนณๅฐ็š„ๆœฌๆฉŸไปฃ็ขผใ€‚ In other words, OS-specific package already includes proper .NET runtime inside, which allows you to entirely skip the whole installation mess and just launch ASF directly. OS-specific ๅŒ…๏ผŒ้กงๅๆ€็พฉ๏ผŒๆ˜ฏ้‡ๅฐไธๅŒๆ“ไฝœ็ณป็ตฑ็š„๏ผŒๆฏ็จฎๆ“ไฝœ็ณป็ตฑ้ƒฝ้œ€่ฆๅ…ถ็‰นๅฎš็š„็‰ˆๆœฌโ€”โ€”ไพ‹ๅฆ‚ Windows ้œ€่ฆ PE32+ ArchiSteamFarm.exeไบŒ้€ฒไฝๆช”ๆกˆ๏ผŒ่€Œ Linux ๅ‰‡้œ€่ฆ Unix ELF ArchiSteamFarmไบŒ้€ฒไฝๆช”ๆกˆใ€‚ ๆ‚จๅฏ่ƒฝๅทฒ็ถ“็Ÿฅ้“๏ผŒ้€™ๅ…ฉ็จฎ้กžๅž‹ไน‹้–“ๆ˜ฏๅฎŒๅ…จไธ็›ธๅฎน็š„ใ€‚

ASF็•ถๅ‰ๅฏ็”จๆ–ผไปฅไธ‹ๆ“ไฝœ็ณป็ตฑ ๏ผš

  • win-x64 ๆ”ฏๆด 64 ไฝ Windows ๆ“ไฝœ็ณป็ตฑใ€‚ This includes Windows 7 (SP1+), 10, 11, Server 2012+ as well as future versions.
  • linux-arm้ฉ็”จๆ–ผๅŸบๆ–ผ ARM๏ผˆARMv7+๏ผ‰็š„32ไฝGNU/Linux ๆ“ไฝœ็ณป็ตฑใ€‚ This includes platforms such as Raspberry Pi 2 (and newer) with all GNU/Linux OSes available for them (such as Raspberry Pi OS), in current and future versions. This variant will not work with older ARM architectures, such as ARMv6 found in Raspberry Pi 0 & 1, it will also not work with OSes that do not implement required GNU/Linux environment (such as Android).
  • linux-arm64 works on 64-bit ARM-based (ARMv8+) GNU/Linux OSes. This includes platforms such as Raspberry Pi 3 (and newer) with all AArch64 GNU/Linux OSes available for them (such as Debian), in current and future versions. This variant will not work with 32-bit OSes that do not have required 64-bit libraries available (such as Raspberry Pi OS), it will also not work with OSes that do not implement required GNU/Linux environment (such as Android).
  • linux-x64 ้ฉ็”จๆ–ผ64 ไฝ GNU/Linux ๆ“ไฝœ็ณป็ตฑใ€‚ This includes Alpine, CentOS/Fedora/RHEL, Debian/Ubuntu, OpenSUSE/SLES and many other ones, including their derivatives, in current and future versions.
  • osx-arm64 works on 64-bit ARM-based (Apple silicon) OS X OSes. This includes version 11, as well as future ones.
  • osx-x64 ้ฉ็”จๆ–ผ64ไฝ OS X ๆ“ไฝœ็ณป็ตฑใ€‚ This includes version 10.14, as well as future ones.

Of course, even if you don't have OS-specific package available for your OS-architecture combination, you can always install appropriate .NET runtime yourself and run generic ASF flavour, which is also the main reason why it exists in the first place. Generic ASF build is platform-agnostic and will run on any platform that has a working .NET runtime. This is important to note - ASF requires .NET runtime, not some specific OS or architecture. For example, if you're running 32-bit Windows then despite of no dedicated win-x86 ASF version, you can still install .NET SDK in win-x86 version and run generic ASF just fine. ๆˆ‘ๅ€‘็„กๆณ•็‚บๆ‰€ๆœ‰ๆ“ไฝœ็ณป็ตฑๅ’Œๆžถๆง‹็ต„ๅˆ้ƒฝๆไพ›ไธ€ไปฝๅฏๅŸท่กŒๆกฃๆกˆ๏ผŒ็‚บๆญคๆˆ‘ๅ€‘่ฆๅœจๆŸ่™•ๅŠƒๆธ…็•Œ้™ใ€‚ x86 ๅฐฑๆ˜ฏ้€™ๆข็ทš็š„็ฏ„ไพ‹ไน‹ไธ€๏ผŒๅ› ็‚บๅฎƒ็š„้ซ”็ณป็ตๆง‹่‡ณๅฐ‘่‡ช 2004 ๅนด้–‹ๅง‹ๅฐฑๅทฒ้Žๆ™‚ไบ†ใ€‚

For a complete list of all supported platforms and OSes by .NET 6.0, visit release notes.


้‹่กŒๆ™‚็’ฐๅขƒ้œ€ๆฑ‚

If you're using OS-specific package then you don't need to worry about runtime requirements, because ASF always ships with required and up-to-date runtime that will work properly as long as you have .NET prerequisites installed and up-to-date. In other words, you don't need to install .NET runtime or SDK, as OS-specific builds require only native OS dependencies (prerequisites) and nothing else.

However, if you're trying to run generic ASF package then you must ensure that your .NET runtime supports platform required by ASF.

ASF as a program is targeting .NET 6.0 (net6.0) right now, but it may target newer platform in the future. net6.0 is supported since 6.0.100 SDK (6.0.0 runtime), although ASF is configured to prefer latest runtime at the moment of compilation, so you should ensure that you have latest SDK (or at least runtime) available for your machine. Generic ASF variant may refuse to launch if your runtime is older than the specified minimum supported one during compilation.

If in doubt, check what our continuous integration uses for compiling and deploying ASF releases on GitHub. You can find dotnet --info output in every build as part of .NET verification step.

Clone this wiki locally