Windows的Amiko,用C#编写。现在可以在Microsoft Store中提供应用程序!
| 姓名 | 语言 | 建造 |
|---|---|---|
| Amiko Desitin | 德意志(Schweiz) | 建立在Azure Pipelines |
| 喜剧的desitin | 弗朗索瓦(瑞士) | 建立在Azure Pipelines |
也可以使用MacOS的另一个版本。参见Amiko-OSX。




15'913药物相互作用搜索者:
所有数据可以每天更新。
>= 4.6.2>= 14.02.1.105 )2.0.7 )4.6.2 )或只是设置Visual Studio >= 2015
并进行测试。
>= 3.10.1 )>= 3.8.0 )用于释放。
10.0.17134.0 )如果您在Windows上查看Linux上的源代码,则似乎必须在Windows上阅读。您仍然可以使用MSBuild或Visual Studio等在Windows上的Windows上构建它,但是您无法从Windows侧修改现有文件。
请参阅:不要使用Windows应用程序和工具更改Linux文件。
/mnt上的Linux上也可读 /可编辑) 首先,您需要将数据库和CSV文件放入Data目录。使用这些文件构建应用程序后,您可以通过应用程序的功能进行更新。
可以通过使用PowerShell运行download.ps1或:
$ cd /path/to/project
% mkdir -p AmiKoWindows/Data/{de,fr}
# AmiKoDesitin
$ cd AmiKoWindows/Data/de
$ curl -sLO http://pillbox.oddb.org/amiko_report_de.html
$ curl -sLO http://pillbox.oddb.org/amiko_db_full_idx_de.zip
$ curl -sLO http://pillbox.oddb.org/amiko_frequency_de.db.zip
$ curl -sLO http://pillbox.oddb.org/drug_interactions_csv_de.zip
$ unzip amiko_db_full_idx_de.zip
$ unzip amiko_frequency_de.db.zip
$ unzip drug_interactions_csv_de.zip
# CoMedDesitin
$ cd AmiKoWindows/Data/fr
$ curl -sLO http://pillbox.oddb.org/amiko_report_fr.html
$ curl -sLO http://pillbox.oddb.org/amiko_db_full_idx_fr.zip
$ curl -sLO http://pillbox.oddb.org/amiko_frequency_fr.db.zip
$ curl -sLO http://pillbox.oddb.org/drug_interactions_csv_fr.zip
$ unzip amiko_db_full_idx_fr.zip
$ unzip amiko_frequency_fr.db.zip
$ unzip drug_interactions_csv_fr.zip *:我们购买了Glyphish图标并为此项目进行了修改。它没有在GPL-3.0 (作为图标)下重新分布。由于它不是开源项目,因此您不能将它们作为该项目的图标,只能将它们用作我们的源代码的一部分。参见glyphish-license.txt。
如果您已经在Windows上的Linux上检查了该项目, NuGet无法正确处理Windows上的PowerShell上的长路径。因此,您需要在命令提示符或PowerShell(使用/c )上使用mklink和环境变量设置符号链接。
请参阅:Nuget和长文件名支持#3324。
# This is project location, for example environment variable `AmiKo` is set as:
# C:Users<USER>AppDataLocalPackagesTheDebian...LocalStaterootfs
# home<user>pathtoproject
C:Windowssystem32> cd C:Users<USER>
# Or `cmd /c mklink /D AmiKo %AmiKo%` on PowerShell
C:Users<USER>> mklink /d AmiKo %AmiKo%
C:Users<USER>> cd AmiKo
C:Users<USER>AmiKo>然后,您可以将软件包( Packages )下载。在Powershell上:
# Downloads NuGet.exe (windows x86 Commandline) here
C:Users < USER > AmiKo > . NuGet.exe install " AmiKoWindows/packages.config "在Windows上的Linux上,它不会影响长路径名问题。在bash上(窗户上的Linux带有单声道):
# You can just do it (e.g. `/usr/local/bin/nuget.exe`)
user@host:/path/to/project $ nuget install AmiKoWindows/packages.configGoogleConstants.cs.sample to AmiKoWindowsSourceGoogleConstants.csAmiKoWindowsSourceHINClientHINClientCredentials.cs.sample to AmiKoWindowsSourceHINClientHINClientCredentials.cs在此步骤中,您可能需要在Windows上使用PowerShell。
Debug或Release )AnyCPU , x86或x64 。)Trace或无) 您需要从此处安装Microsoft Build Tools 2015 。
使用>= 14.0 (由Microsoft Build Tools 2015安装一个)。或者,您可能需要使用特殊命令提示符,例如Developer Command Prompt for VS 2017 。
# Check the location of `MSBuild.exe`
PS C:Users.. . > Resolve-Path HKLM:SOFTWAREMicrosoftMSBuildToolsVersion * | Get-ItemProperty - Name MSBuildToolsPath
MSBuildToolsPath : C:Program Files (x86)MSBuild 14.0 binamd64
PSPath : Microsoft.PowerShell.CoreRegistry::HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSBuildToolsVersions 14.0
...
MSBuildToolsPath : C:WindowsMicrosoft.NETFramework64v4. 0.30319
PSPath : Microsoft.PowerShell.CoreRegistry::HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSBuildToolsVersions 4.0
...使用MSBuild在PowerShell上构建(您需要为MSBuild.exe设置路径):
# AmiKoDesitin
PS C:Users... > MSBuild.exe .AmiKoWindowsAmiKoDesitin.csproj / t: Clean
PS C:Users... > MSBuild.exe .AmiKoWindowsAmiKoDesitin.csproj / t:Build / p:Configuration = Debug
# CoMedDesitin
PS C:Users... > MSBuild.exe .AmiKoWindowsCoMedDesitin.csproj / t: Clean
PS C:Users... > MSBuild.exe .AmiKoWindowsCoMedDesitin.csproj / t:Build / p:Configuration = Debug然后,您可以在bin目录中启动或杀死{AmiKo|CoMed}Desitin.exe :
# AmiKoDesitin
PS C:Users... > Start-Process ' .AmiKoWindowsbinDebugAmiKoAmiKo Desitin.exe '
PS C:Users... > Get-Process ' AmiKo Desitin ' | Stop-Process
PS C:Users... > taskkill / im ' AmiKo Desitin.exe ' / f
# CoMedDesitin
PS C:Users... > Start-Process ' .AmiKoWindowsbinDebugAmiKoCoMed Desitin.exe '
PS C:Users... > Get-Process ' CoMed Desitin ' | Stop-Process
PS C:Users... > taskkill / im ' CoMed Desitin.exe ' / f还有一个脚本可以构建和调用该应用程序。
# AmiKoDesitin (Debug is default)
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .BuildAndRun.ps1 " AmiKo "
# CoMedDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .BuildAndRun.ps1 " CoMed " " Debug "最后,您需要使用DebugView或WinDbg等调试应用程序(set /p:Log=Trace for Trace)
1. AmiKoWindows -> Navigate {AmiKoDesitin|CoMedDesitin} -> Properties (Right Click)
a. Set assembly name
b. Set assembly information (Title, Product, Assembly version, File version)
2. Confirm Signing Tab
3. Check Security
4. Set target project using `Set as StartUp Project` (Right Click on the Solution Name)
5. Clean Solution (both projects)
5. Rebuild target project (AmiKoDesitin or CoMedDesitin)
6. (Publish)或者您可以将其添加到您的路径
C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0Binamd64
这也将从您的源目录起作用
PS C:Users...> MSBuild.exe .AmiKoWindowsAmiKoDesitin.csproj /t:Clean
PS C:Users...> MSBuild.exe .AmiKoWindowsAmiKoDesitin.csproj /t:Build /p:Configuration=Debug
PS C:Users...> Start-Process '.AmiKoWindowsbinDebugAmiKoAmiKo Desitin.exe'
# or just do
PS C:Users...> PowerShell.exe -ExecutionPolicy Bypass -File .BuildAndRun.ps1 "AmiKo"
MakeMsi.ps1与PowerShell;C:Program Files (x86)WiX Toolset v3.11binAmikoWindowsbinReleaseAmiko-InstallerAmiko-Installer.msiAmikoWindowsbinReleaseComed-InstallerComed-Installer.msi您将需要以下步骤。
MakeRelease.ps1将exe二进制转换为appxPackage.ps1重新包装资产从Microsoft Store下载Desktop App Converter 。然后使用MakeRelease.ps1脚本和您的签名证书和钥匙。 (在PowerShell中以管理员的身份运行)
在制作发布之前,请在以下文件中检查构建配置和版本等。
AmiKoWindows/{AmiKoDesitin.appx.manifest,CoMedDesitin.appx.manifest}AmiKoWindows/Properties/AssemblyInfo.csMakeRelease.ps1 # As Administrator
# AmiKoDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .MakeRelease.ps1 " AmiKo " " Debug "
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .MakeRelease.ps1 " AmiKo " " Release "
# CoMedDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .MakeRelease.ps1 " CoMed " " Debug "
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .MakeRelease.ps1 " CoMed " " Release " Appx将在AmiKoWindows/bin/{Debug,Release}/Output/{AmiKo,CoMed}中生成。
当前, desktopappConverter的-AppFileTypes选项预期无法用于外配置。虽然修复AppxManifest.xml 。
小路:
AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFiles/AppxManifest.xmlAmiKoWindows/bin/Release/Output/yweseeGmbH.CoMedDesitin/PackageFiles/AppxManifest.xml # add missing entries `Extensions`
<Applications>
<Application>
...
<Extensions>
<uap:Extension Category="windows.fileTypeAssociation">
<uap:FileTypeAssociation Name="amk">
<uap:Logo>AssetsSquare44x44Logo.scale-100.png</uap:Logo>
<uap:SupportedFileTypes>
<uap:FileType>.amk</uap:FileType>
</uap:SupportedFileTypes>
</uap:FileTypeAssociation>
</uap:Extension>
</Extensions>
</Application>
</Applications>
Package.ps1脚本也执行此步骤。如果您想再次手动执行此操作。您可以遵循以下说明:
# As Administrator
# AmiKoDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .Package.ps1 " AmiKo " " Debug "
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .Package.ps1 " AmiKo " " Release "
# CoMedDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .Package.ps1 " CoMed " " Debug "
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .Package.ps1 " CoMed " " Release "或者,
'C:Program Files (x86)Windows Kits10bin10.0.17134.0x64{makepri,makeappx}.exe' (版本10.0.17134AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFilesAmiKoWindows/Assets/ AmiKoWindows/bin/Release/Output/yweseeGmbH.AmiKo/PackageFiles/Assets/ (覆盖)中的所有资产MakeAppx.exe重新包装 # e.g. AmiKoDesitin
# Change directory into **PackageFiles**
PS C:Users... > cd AmiKoWindows / bin / Release / Output / yweseeGmbH.AmiKo / PackageFiles
PS C:Users... > rm .Assets - r - fo
PS C:Users... > cp ..........Assets .
# MakePri.exe
PS C:Users... > ' makepri.exe ' createconfig / cf priconfig.xml / dq de - CH
# It seems that it needs absolute path...
PS C:Users... > ' makepri.exe ' new
/ pr C:Users < user > pathtoamiko_csharpAmiKoWindowsbinReleaseOutputyweseeGmbH.AmiKoPackageFiles
/ cf C:Users < user > pathtoamiko_csharpAmiKoWindowsbinReleaseOutputyweseeGmbH.AmiKoPackageFilespriconfig.xml
# MakeAppx.exe
PS C:Users... > ' makeappx.exe ' pack / d . / p " AmiKo Desitin "
# Replace appx
PS C:Users... > Move-Item - Path " AmiKoWindowsbinReleaseOutputyweseeGmbH.AmiKoPackageFilesAmiKo Desitin.appx " `
- Destination " AmiKoWindowsbinReleaseOutputyweseeGmbH.AmiKoyweseeGmbH.AmiKo.appx " - Force # Sign (again)
PS C:Users... > signtool.exe sign / fd < HASH ALGORITHM > / a / f < PFX > / p < PASSWORD > < FILE > .appx注意:您需要通过证书向导将此pfx证书安装到本地机器上的受信任人员中。使用importpfx.exe importpfx.exe -f "somePfx.pfx" -p "somePassword" -t MACHINE -s "TRUSTEDPEOPLE"
清洁构建的缓存数据或资源等(对于调试,.exe)
PS C:Users... > taskkill / im ' AmiKo Desitin.exe ' / f
PS C:Users... > MSBuild.exe .AmiKoWindowsAmiKoDesitin.csproj / t: Clean
PS C:Users... > taskkill / im ' CoMed Desitin.exe ' / f
PS C:Users... > MSBuild.exe .AmiKoWindowsCoMedDesitin.csproj / t: Clean # Just delete these directories (or delete `user.config` in there)
PS C:Users... > rm ' C:Users<USER>AppDataLocalyweseeAmiKo Desitin.exe* ' -f - fo
PS C:Users... > rm ' C:Users<USER>AppDataLocalyweseeCoMed Desitin.exe* ' -f - fo # e.g. Profile Photo (for debug, .exe)
PS C:Users... > rm ' C:Users<USER>AppDataRoamingyweseeAmiKo Desitin*.png ' -f - fo
PS C:Users... > rm ' C:Users<USER>AppDataRoamingyweseeCoMed Desitin*.png ' -f - fo重置地址簿条目和处方文件( .amk文件)。
# AmiKoDesitin (for debug, .exe)
PS C:Users... > taskkill / im ' AmiKo Desitin.exe ' / f
PS C:Users... > rm ' C:Users<USER>AppDataLocalTempamiko* ' - r - fo
PS C:Users... > rm ' C:Users<USER>AppDataRoamingyweseeAmiko Desitinamk* ' - r - fo
PS C:Users... > rm .AmiKoWindowsbinDebugAmiKo * - r - fo
# CoMedDesitin (for debug, .exe)
PS C:Users... > taskkill / im ' CoMed Desitin.exe ' / f
PS C:Users... > rm ' C:Users<USER>AppDataLocalTempcomed* ' - r - fo
PS C:Users... > rm ' C:Users<USER>AppDataRoamingyweseeCoMed Desitinamk* ' - r - fo
PS C:Users... > rm .AmiKoWindowsbinDebugCoMed * - r - fo请参阅AmiKoWindows.Tests中的项目。测试用Nunit编写。
PS C:Users... > taskkill / im ' MSBuild.exe ' / f
# AmiKoDesitin
PS C:Users... > MSBuild.exe .AmiKoWindows.TestsAmiKoDesitin.Test.csproj / t: Clean
PS C:Users... > MSBuild.exe .AmiKoWindows.TestsAmiKoDesitin.Test.csproj / t:Build / p:Configuration = Debug / p:Platform = x64
PS C:Users... > .PackageNUnit.ConseleRunner. 3.8 . 0 tools nunit3-console.exe .AmiKoWindows.TestsbinDebugAmiKoAmiKoDesitin.Test.dll -- output TestOutput.log
# CoMedDesitin
PS C:Users... > MSBuild.exe .AmiKoWindows.TestsCoMedDesitin.Test.csproj / t: Clean
PS C:Users... > MSBuild.exe .AmiKoWindows.TestsCoMedDesitin.Test.csproj / t:Build / p:Configuration = Debug / p:Platform = x64
PS C:Users... > .PackageNUnit.ConsoleRunner. 3.8 . 0 tools nunit3-console.exe .AmiKoWindows.TestsbinDebugCoMedCoMedDesitin.Test.dll -- output TestOutput.log或者,您可以只使用RunTest.ps1执行测试。
# AmiKoDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .RunTest.ps1 " AmiKo "
# CoMedDesitin
PS C:Users... > PowerShell.exe - ExecutionPolicy Bypass - File .RunTest.ps1 " CoMed " GPL-3.0
AmiKo for Windows
Copyright (c) ywesee GmbH请联系:
[email protected]
+41 43 540 05 50