File tree 5 files changed +184
-161
lines changed
5 files changed +184
-161
lines changed Original file line number Diff line number Diff line change 1
- # 编译好的程序文件不同步
1
+ # 编译好的程序文件
2
2
miracleplayer_release /
3
3
4
- # 生成的安装程序不同步
4
+ # 生成的安装程序
5
5
setup /* .exe
6
6
setup /* .log
7
7
setup /bin
8
- setup /obj
8
+ setup /obj
9
+
10
+ # Visual Studio配置
11
+ setup /.vs
Original file line number Diff line number Diff line change 6
6
7
7
程序设计上机作业,一个简单的音乐播放器,内置网易源和酷狗源。设计参考自Ahmed Manna的作品,图标来自[ FeatherIcon] ( https://feathericons.com/ ) 。
8
8
9
- 您可以随意下载、修改和使用本仓库的内容!使用Qt 6编写,Windows下需要额外安装MSVC而非MinGW版Qt编译器 ,需要Qt Multimedia组件。欢迎您提交贡献!
9
+ 您可以随意下载、修改和使用本仓库的内容!使用Qt 6编写,Windows下需要额外安装MSVC(下载安装Visual Studio,安装时勾选“使用C++的桌面开发”即可)而非MinGW版Qt编译器 ,需要Qt Multimedia组件。欢迎您提交贡献!
10
10
11
11
[ GitHub仓库] ( https://www.github.com/VEXLife/MiraclePlayer/ ) [ Gitee仓库] ( https://www.gitee.com/VEXLife/MiraclePlayer/ )
12
12
Original file line number Diff line number Diff line change 1
- # NSIS安装程序脚本
1
+ # 安装程序脚本
2
2
3
3
此目录包含用于创建安装程序所需的文件。
4
4
5
5
# 使用方法
6
6
7
7
1 . 将编译好的程序使用windeployqt部署后重命名为miracleplayer_release,存放于仓库根目录下。
8
- 2 . 选择一个你喜欢的安装程序制作软件([ Inno Setup] ( https://jrsoftware.org/isinfo.php ) /[ NSIS] ( https://nsis.sf.net ) )
9
- 3 . 安装相应软件,打开此目录下的对应文件编译即可。
8
+ 2 . 选择一个你喜欢的安装程序制作软件([ Inno Setup] ( https://jrsoftware.org/isinfo.php ) /[ NSIS] ( https://nsis.sf.net ) /[ WiX Toolset] ( https://wixtoolset.org/ ) )
9
+ 3 . 安装相应软件,打开此目录下的对应文件编译即可。
10
+
11
+ ## WiX Toolset配置说明
12
+
13
+ 使用WiX Toolset你将得到一个msi安装包,然而配置过程较为繁琐。项目中需要4.0.0版本,我强烈推荐您按如下步骤配置更为简单:
14
+
15
+ 1 . 安装Visual Studio,您需要勾选“使用C++的桌面开发”(若您按照[ 主README.md] ( ../README.md ) 配置过开发环境,那么该工作负载可能已经勾选)和“.NET桌面开发”。
16
+ 2 . 下载[ FireGiant HeatWave] ( https://www.firegiant.com/wix/heatwave/ ) ,作为Visual Studio扩展安装。或者前往Visual Studio Marketplace搜索下载安装。
17
+
18
+ 搞定!
19
+
20
+ ## WiX Toolset构建
21
+
22
+ 您可以用Visual Studio打开此目录下的[ mplayer_setup_wix.wixproj] ( mplayer_setup_wix.wixproj ) ,然后将构建配置改为x64进行编译(因为奇迹音乐默认不支持32位,您也可以以32位模式也就是x86重新编译奇迹音乐,然后在这步改为x86编译)。或者,在终端(也可以是命令提示符或Powershell)运行:
23
+
24
+ ``` bash
25
+ $ dotnet build
26
+ ```
27
+
28
+ 如此您便能得到所需的msi安装包。
You can’t perform that action at this time.
0 commit comments