Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Build Linux-single-file-app
run: dotnet publish QuIDE/QuIDE.csproj -r linux-x64 -f net8.0 -p:PublishSingleFile=true --self-contained false
run: dotnet publish QuIDE/QuIDE.csproj -r linux-x64 -f net10.0 -p:PublishSingleFile=true --self-contained false

- name: Build Windows-single-file-app
run: dotnet publish QuIDE/QuIDE.csproj -r win-x64 -f net8.0 -p:PublishSingleFile=true --self-contained false
run: dotnet publish QuIDE/QuIDE.csproj -r win-x64 -f net10.0 -p:PublishSingleFile=true --self-contained false

- name: Upload Linux artifact
uses: actions/upload-artifact@v4
with:
name: QuIDE Linux amd64
path: QuIDE/bin/Release/net8.0/linux-x64/publish/QuIDE
path: QuIDE/bin/Release/net10.0/linux-x64/publish/QuIDE

- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: QuIDE Windows amd64
path: QuIDE/bin/Release/net8.0/win-x64/publish/QuIDE.exe
path: QuIDE/bin/Release/net10.0/win-x64/publish/QuIDE.exe

build-on-macos:
# the dmg-step doesn't work on linux
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore

Expand All @@ -68,7 +68,7 @@ jobs:
uses: L-Super/create-dmg-actons@v1.0.3
with:
dmg_name: QuIDE
src_dir: QuIDE/bin/Release/net8.0/osx-arm64/publish/QuIDE.app
src_dir: QuIDE/bin/Release/net10.0/osx-arm64/publish/QuIDE.app

- name: Upload macOS artifact
uses: actions/upload-artifact@v4
Expand Down
6 changes: 3 additions & 3 deletions QuIDE/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Version>2.3</Version>
<FileVersion>2.3</FileVersion>
<InformationalVersion>2.3-dev</InformationalVersion>
<Version>2.5</Version>
<FileVersion>2.5</FileVersion>
<InformationalVersion>2.5</InformationalVersion>
</PropertyGroup>
</Project>
7 changes: 3 additions & 4 deletions QuIDE/QuIDE.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
Expand All @@ -10,7 +10,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- needed for macOS App -->
<UseAppHost>true</UseAppHost>
<FileVersion>2.4.2</FileVersion>
<FileVersion>2.5.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -47,7 +47,6 @@
<PackageReference Include="DotNet.Bundle" Version="*" />
<PackageReference Include="MessageBox.Avalonia" Version="3.1.5.1" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.10.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.10.0" />
<PackageReference Include="ScottPlot.Avalonia" Version="5.0.55" />
</ItemGroup>
Expand Down Expand Up @@ -128,7 +127,7 @@
<!-- Define things for dotnet-bundle for macOS-App -->
<PropertyGroup>
<CFBundleName>QuIDE 2</CFBundleName>
<CFBundleShortVersionString>2.3-dev</CFBundleShortVersionString>
<CFBundleShortVersionString>2.5</CFBundleShortVersionString>
<NSPrincipalClass>NSApplication</NSPrincipalClass>
<CFBundlePackageType>AAPL</CFBundlePackageType>
<NSRequiresAquaSystemAppearance>false</NSRequiresAquaSystemAppearance>
Expand Down
3 changes: 1 addition & 2 deletions Quantum/Quantum.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DocumentationFile>bin\Debug\Quantum.XML</DocumentationFile>
Expand All @@ -24,7 +24,6 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0"/>
<PackageReference Include="MathNet.Numerics" Version="5.0.0"/>
</ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ Cross Platform Quantum Circuit Simulator
## Run the app

- simply download the application in the [Releases](https://github.com/mnm-team/quide/releases) section, there is a version for Windows, Linux (amd64) and macOS (arm64) precompiled.
- to run the program on your machine, you need the dotnet-8.0-runtime. It can be obtained by [Microsoft](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or at your local packet manager, e.g. `dotnet-runtime-8.0` on Ubuntu.
- to run the program on your machine, you need the dotnet-8.0-runtime. It can be obtained by [Microsoft](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or at your local packet manager, e.g. `dotnet-runtime-10.0` on Ubuntu.
- on Linux it can be necessary to set the file as executable for your user (`chmod +x QuIDE`) after unzipping.
- we don't have a developer ID for macOS, so you may need to use the following command: `xattr -cr /Applications/QuIDE.app` after installation (especially when macOS tells the app is broken).

## Compile by yourself

- Install the .NET-SDK 8.0, which can be found at [Microsoft](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or at your local packet manager, e.g. `dotnet-sdk-8.0` on Ubuntu.
- Install the .NET-SDK 10.0, which can be found at [Microsoft](https://dotnet.microsoft.com/en-us/download/dotnet/10.0) or at your local packet manager, e.g. `dotnet-sdk-10.0` on Ubuntu.
- Run `dotnet build --configuration Release` in the repository

### Start program

- Run `QuIDE/bin/Release/net8.0/QuIDE<.exe/.app>`
- You can find the Quantum.dll at `Quantum/bin/Release/net8.0/Quantum.dll`
- Run `QuIDE/bin/Release/net10.0/QuIDE<.exe/.app>`
- You can find the Quantum.dll at `Quantum/bin/Release/net10.0/Quantum.dll`

### Build single-file-app

- To build a single-file-app (Linux & Windows) you can use dotnet publish, e.g.: `dotnet publish QuIDE/QuIDE.csproj -r <linux/win>-x64 -p:PublishSingleFile=true --self-contained false -o out/`, then the App is at `out/QuIDE<.exe>` and all shared libraries (except dotnet-runtime) are included.
- To build a .app on macOS you need two commands: `dotnet publish QuIDE/QuIDE.csproj -r osx-arm64` and `dotnet msbuild QuIDE/QuIDE.csproj -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:UseAppHost=true`. Then you find it at `QuIDE/bin/Release/net8.0/osx-arm64/publish/QuIDE.app`.
- To build a .app on macOS you need two commands: `dotnet publish QuIDE/QuIDE.csproj -r osx-arm64` and `dotnet msbuild QuIDE/QuIDE.csproj -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:UseAppHost=true`. Then you find it at `QuIDE/bin/Release/net10.0/osx-arm64/publish/QuIDE.app`.

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "8.0.0",
"version": "10.0.0",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}
}