-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Compilation zh HK
็ทจ่ญฏๆฏๅตๅปบๅฏๅท่กๆช็้็จใ ๅฆๆๆจๆณๅฐ่ชๅทฑ็ๆดๆนๆทปๅ ๅฐASF๏ผๆ่ ๅบๆผไปปไฝๅๅ ไธไฟกไปปๅฎๆน releases ไธญๆไพ็ๅฏๅท่กๆช๏ผๅ้่ฆๅท่กๆญคๆไฝใ ๅฆๆๆจๆฏๆฎ้็จๆถ่ไธๆฏ้็ผไบบๅก๏ผๅๅพๅฏ่ฝ้่ฆไฝฟ็จๅทฒ้ ็ทจ่ญฏ็ไบ้ฒไฝๆชๆก๏ผไฝๅฆๆๆจๅธๆไฝฟ็จ่ชๅทฑ็ไบ้ฒไฝๆชๆก๏ผๆๅญธ็ฟๆฐๅ งๅฎน๏ผ่ซ็นผ็บ้ฑ่ฎใ
ๅช่ฆๆจๆๆๆๆ้่ฆ็ๅทฅๅ ท๏ผ ๅณๅฏไปฅๅจ็ถๅๆฏๆด็ไปปไฝๅนณๅฐไธ็ทจ่ญฏASFใ
็ก่ซไฝฟ็จไป้บผๅนณๅฐ๏ผๆจ้ฝ้่ฆๅฎๆด็ .NET Core SDK๏ผไธๅ
ๅ
ๆฏ้่กๆ็ฐๅข๏ผๆ่ฝ็ทจ่ญฏ ASFใ ๆจๅฏไปฅๅจ .NET Core ๅฎ่ฃ้ ้ขโๆพๅฐๅฎ่ฃๆๅใ ๆจ้่ฆ็บๆจ็ๆไฝ็ณป็ตฑๅฎ่ฃ็ธๆ็.NET Core SDK็ๆฌใ ๆๅๅฎ่ฃๅพ๏ผdotnet
ๅฝไปคๆๅฏๆญฃๅธธ้่กใ ๆจๅฏไปฅ้ฉ่ญๅฎๆฏๅฆ้ฉ็จไบ < 0>dotnet-info</0 >ใ ๅๆจฃ้่ฆ็ขบ่ชๆจ็ .NET Core SDK ๅน้
ASF ็โ้่กๆ็ฐๅข้ๆฑใ
ๅฆๆๆจๆๅ้ฉ็ๆฌ็ .NET Core SDK๏ผๅช้ๅฐ่ชๅฐๆบ ASF ็ฎ้๏ผๅ ้ๆไธ่ผไธฆ่งฃๅฃ็ธฎ ASF ๅญๅฒๅบซ๏ผ๏ผ็ถๅพๅท่ก๏ผ
dotnet publish ArchiSteamFarm -c "Release" -f "netcoreapp3.0" -o "out/generic" "/p:PublishTrimmed=false"
ๅฆๆๆจๅจไฝฟ็จ Linux/OS X๏ผๆจไนๅฏไปฅไฝฟ็จ cc.sh
่
ณๆฌๅฏฆ็พๅๆจฃ็ๆๆ๏ผๆญค็จฎ็ทจ่ญฏๆนๆณๆนๅผ็จ่ค้ใ
If compilation ended successfully, you can find your ASF in source
flavour in out/generic
directory. This is the same as official generic
ASF build, but it has forced UpdateChannel
and UpdatePeriod
of 0
, which is appropriate for self-builds.
ๅฆๆๆจ้่ฆ๏ผไนๅฏไปฅ็ๆ็นๅฎๆไฝ็ณป็ตฑ็ .NET Core ๅ
ใ In general you shouldn't do that because you've just compiled generic
flavour that you can run with your already-installed .NET Core runtime that you've used for the compilation in the first place, but just in case you want to:
dotnet publish ArchiSteamFarm -c "Release" -f "netcoreapp3.0" -o "out/linux-x64" -r "linux-x64"
็ถ็ถ๏ผๆจ้่ฆๅฐ linux-x64
ๆฟๆๆๆจ้่ฆ็็ฎๆจๆไฝ็ณป็ตฑๆถๆง๏ผไพๅฆ win-x64
ใ ้ไธๆงๅปบไนๅฐ็ฆ็จ่ชๅๆดๆฐใ
In a very rare case when you'd want to build generic-netf
package, you can change target framework from netcoreapp3.0
to net48
. ่ซๆณจๆ๏ผๆจ้่ฆๅ้ฉ็ **.NET ๆกๆถ**โ้็ผ่
ๅทฅๅ
ทๅ
ๅ .NET Core SDK ๆ่ฝ็ทจ่ญฏ netf
ๅ
๏ผๆไปฅๆญคๅฝไปคๅ
้ฉ็จๆผ Windows๏ผ
dotnet publish ArchiSteamFarm -c "Release" -f "net48" -o "out/generic-netf" "/p:PublishTrimmed=false"
ๅจ็กๆณๅฎ่ฃ .NET ๆกๆถ็่ณ .NET Core SDK ๆฌ่บซ็ๆ
ๆณไธ๏ผไพๅฆๅจ linux-x86
ๅนณๅฐ็จ mono
ๆงๅปบ๏ผ๏ผๅฏไปฅ็ดๆฅ่ชฟ็จ msbuild
ใ ๆจ้้่ฆๆๅๆๅฎ ASFNetFramework
๏ผๅ ็บ ASF ้ ่จญ็ฆๆญขๅจ้ Windowsๅนณๅฐไธๆงๅปบ netf๏ผ
msbuild /m /p:Configuration=Release /p:PublishDir=out/generic-netf /p:TargetFramework=net48 /p:ASFNetFramework=true /p:PublishTrimmed=false /r /t:Publish ArchiSteamFarm
ๅฆๆๆจๆณ่ฆ็ทจ่ผฏ ASF ไปฃ็ขผ๏ผๆจๅฏไปฅไฝฟ็จไปปไฝ็ธๅฎน .NET Core ็ IDE๏ผไฝ้ไนๆฏๅฏ้ธ็๏ผๅ ็บๆจ็่ณๅฏไปฅ็จ่จไบๆฌ็ทจ่ผฏไปฃ็ขผไธฆ็จไธ่ฟฐ dotnet
ๆไปค็ทจ่ญฏใ ไธ้๏ผๅฐๆผ Windows ็ณป็ตฑ๏ผๆๅๆจ่ฆไฝฟ็จโ**ๆๆฐ็ๆฌ็ Visual Studio**๏ผๅ
่ฒป็็คพๅ็ๅณๅฏ๏ผใ ๆๅ้ๅปบ่ญฐๆจ้
ๅไฝฟ็จ ReSharper๏ผๅฏ้ธ๏ผ๏ผไฝๅฎไธๆฏไธๅๅ
่ฒป่ปไปถใ
ๅฆๆๆจ่ฆๅจ Linux/OS X ไธ้็ผ ASF ไปฃ็ขผ๏ผๆๅๆจ่ฆไฝฟ็จโ**ๆๆฐ็็ Visual Studio Code**ใ ๅฎๆฒๆ็ถๅ ธ็ Visual Studio ้ฃ้บผ่ฑๅฏ็ๅ่ฝ๏ผไฝๅทฒ่ถณๅค ไบใ
็ถ็ถ๏ผไปฅไธ็ๆๆๅปบ่ญฐ้ฝๅ
ๅ
ๆฏๅปบ่ญฐ๏ผๆจๅฏไปฅไฝฟ็จๆจๆณ็จ็ไปปไฝๅทฅๅ
ท๏ผๆๅพๆจ้ฝ่ฆไฝฟ็จ dotnet build
ๅฝไปค้ฒ่กๆงๅปบใ ๆๅไฝฟ็จ Visual Studio + ReSharper ้ฒ่ก ASF ็้็ผ๏ผไนไฝฟ็จไบไธ้จๅ็ฌฌไธๆนๅทฅๅ
ท๏ผๆจๅฏไปฅๅจrepo็ tools
็ฎ้ไธญๆพๅฐๅฎๅใ
master
ๅๆฏไธฆไธไฟ่ญ่ฝๅค ๆๅ็ทจ่ญฏๆ่
ๆญฃๅธธ้่ก ASF๏ผๆญฃๅฆๆๅๅจโ**็ผไฝๅจๆโไธญๆ่ฟฐ๏ผ้ๆฏไธๅ้็ผๅๆฏใ If you want to compile or reference ASF from source, then you should use appropriate tag for that purpose, which guarantees at least successful compilation, and very likely also flawless execution (if build was marked as stable release). ๆจๅฏไปฅ้้ๆชขๆฅๆๅ็ CIโโAppVeyor** ๆ **Travis**ไปฅไบ่งฃไปฃ็ขผๅบซ็พๆ็โๅฅๅบท็ๆ
โใ
ๅฎๆน ASF ็ผไฝ็ๆฌ็ฑ Windows ไธ็ๅธถๆๆปฟ่ถณ ASF **้่กๆ็ฐๅข้ๆฑ**โ็ๆๆฐ็ .NET Core SDK ็ AppVeyor ็ทจ่ญฏใ ็ถๆธฌ่ฉฆๅพ๏ผๆๆ็ๅ ้ฝๆ่ขซ้จ็ฝฒๅจ GitHub ไธใ ้ไนไฟ่ญไบ้ๆๅบฆ๏ผๅ ็บ AppVeyor ็ธฝๆฏ็บๆๆๆงๅปบไฝฟ็จๅฎๆนๅ ฌๅ ฑๆบ๏ผไธฆไธๆจๅฏไปฅๆชขๆฅ AppVeyor ็ Artifacts ่ GitHub ้ไปถ็ Checksum๏ผๆ ก้ฉๅ๏ผใ ้คไบ็งไบบ็้็ผๅ่ชฟ่ฉฆ้็จๅค๏ผASF ้็ผไบบๅกไธๆ่ช่ก็ทจ่ญฏๆ็ผไฝๆงๅปบ็ๆฌใ
- ๐ก Home
- ๐ง Configuration
- ๐ฌ FAQ
- โ๏ธ Setting up (start here)
- ๐ฅ ๅพๅฐๅบ่ๅๅๅจ
- ๐ข Commands
- ๐ ๏ธ Compatibility
- ๐งฉ ItemsMatcherPlugin
- ๐ Management
- โฑ๏ธ Performance
- ๐ก Remote communication
- ๐ช Steam ่ฆชๅๅไบซ
- ๐ Trading