Skip to content

Commit

Permalink
going back to netcoreapp3.1 ... -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Nov 16, 2020
1 parent 4343ca6 commit 1351556
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Properties/PublishProfiles/FolderProfile.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net5\publish\</PublishDir>
<PublishDir>bin\Release\netcoreapp3.1\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Cross platform Neovim front-end UI, built with [F#](https://fsharp.org/) + [Aval
- Arch Linux: [Install via AUR](https://aur.archlinux.org/packages/fvim/)
- RPM-based distributions: `rpm -ivh fvim_package_name.rpm`
- Fedora: `dnf install fvim_package_name.rpm`
- Compile from Source (having dotnet-sdk-5+ installed):
- Compile from Source (having dotnet-sdk-3.1+ installed):
```
git clone https://github.com/yatli/fvim && cd fvim && dotnet publish -f net5 -c Release -r linux-x64 --self-contained
git clone https://github.com/yatli/fvim && cd fvim && dotnet publish -f netcoreapp3.1 -c Release -r linux-x64 --self-contained
```

### Features
Expand Down Expand Up @@ -70,7 +70,7 @@ endif
![fluent_cursor](https://raw.githubusercontent.com/yatli/fvim/master/images/fluent_cursor.gif)

### Building from source
We're now targeting `net5` so make sure to install the latest preview SDK from the [.NET site](https://dotnet.microsoft.com/download/dotnet-core/3.1).
We're now targeting `netcoreapp3.1` so make sure to install the latest preview SDK from the [.NET site](https://dotnet.microsoft.com/download/dotnet-core/3.1).
We're actively tracking the head of `Avalonia`, and fetch the nightly packages from myget (see `NuGet.config`).

Then, simply:
Expand Down
3 changes: 2 additions & 1 deletion fvim.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>FVim</AssemblyName>
<Prefer32Bit>false</Prefer32Bit>
<ApplicationIcon>fvim.ico</ApplicationIcon>
Expand Down Expand Up @@ -77,6 +77,7 @@

<PackageReference Include="FSharp.Control.Reactive" Version="4.4.2" />
<PackageReference Include="FSharp.Data" Version="3.3.3" />
<PackageReference Include="FSharp.Core" Version="5.0" />
<PackageReference Include="MessagePack" Version="1.9.11" />
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
<PackageReference Include="NSubsys" Version="1.0.0">
Expand Down
1 change: 1 addition & 0 deletions model.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ open System.ComponentModel
open SkiaSharp
open Avalonia.Layout
open System.Threading.Tasks
open System.Threading

#nowarn "0058"
#nowarn "0025"
Expand Down
2 changes: 1 addition & 1 deletion neovim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ type Nvim() =
member this.subscribe (ctx: SynchronizationContext) (fn: Event -> unit) =
this.events
|> Observable.observeOnContext ctx
|> Observable.synchronize
(*|> Observable.synchronize*)
|> Observable.subscribe fn
|> this.pushSubscription

Expand Down
10 changes: 5 additions & 5 deletions pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Remove-Item -Recurse -Force bin\ -ErrorAction SilentlyContinue
Remove-Item publish\*

foreach($i in $plat) {
dotnet publish -f net5 -c Release --self-contained -r $i
dotnet publish -f netcoreapp3.1 -c Release --self-contained -r $i
if ($i -eq "win-x64") {
# replace the coreclr hosting exe with an icon-patched one
Copy-Item lib/fvim-win10.exe bin/Release/net5/$i/publish/FVim.exe
Copy-Item lib/fvim-win10.exe bin/Release/netcoreapp3.1/$i/publish/FVim.exe
# Avalonia 0.10.0-preview6 fix: manually copy ANGLE from win7-x64
Copy-Item ~/.nuget/packages/avalonia.angle.windows.natives/2.1.0.2020091801/runtimes/win7-x64/native/av_libglesv2.dll bin/Release/net5/$i/publish/
Copy-Item ~/.nuget/packages/avalonia.angle.windows.natives/2.1.0.2020091801/runtimes/win7-x64/native/av_libglesv2.dll bin/Release/netcoreapp3.1/$i/publish/
} elseif ($i -eq "win7-x64") {
Copy-Item lib/fvim-win7.exe bin/Release/net5/$i/publish/FVim.exe
Copy-Item lib/fvim-win7.exe bin/Release/netcoreapp3.1/$i/publish/FVim.exe
}
Compress-Archive -Path bin/Release/net5/$i/publish/* -DestinationPath publish/fvim-$i.zip -Force
Compress-Archive -Path bin/Release/netcoreapp3.1/$i/publish/* -DestinationPath publish/fvim-$i.zip -Force
}

4 changes: 2 additions & 2 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ rm -ir publish/*
PKG_TFM=$1
VERSION=$(git describe)
VERSION=${VERSION:1}
PKG_ROOT="bin/Release/net5/$PKG_TFM/publish"
dotnet publish -f net5 -c Release --self-contained -r $PKG_TFM
PKG_ROOT="bin/Release/netcoreapp3.1/$PKG_TFM/publish"
dotnet publish -f netcoreapp3.1 -c Release --self-contained -r $PKG_TFM

function pack-linux-x64()
{
Expand Down
2 changes: 1 addition & 1 deletion update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Stop-Process -Name "fvim"
dotnet build -c Release
cp bin/Release/net5/FVim* C:/tools/fvim/
cp bin/Release/netcoreapp3.1/FVim* C:/tools/fvim/
cp lib/fvim-win10.exe C:/tools/fvim/FVim.exe
fvim

0 comments on commit 1351556

Please sign in to comment.