-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from 2439905184/dev
Dev
- Loading branch information
Showing
12 changed files
with
805 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist/ | ||
test/ | ||
test/ | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly | ||
xmlns="urn:schemas-microsoft-com:asm.v1" | ||
manifestVersion="1.0"> | ||
<assemblyIdentity | ||
processorArchitecture="x86" | ||
version="5.1.0.0" | ||
type="win32" | ||
name="Unpacker.exe"/> | ||
<description>Unpacker</description> | ||
<dependency> | ||
<dependentAssembly> | ||
<assemblyIdentity | ||
type="win32" | ||
name="Microsoft.Windows.Common-Controls" | ||
version="6.0.0.0" | ||
publicKeyToken="6595b64144ccf1df" | ||
language="*" | ||
processorArchitecture="x86"/> | ||
</dependentAssembly> | ||
</dependency> | ||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!--Windows Vista --> | ||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> | ||
<!--Windows 7 --> | ||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> | ||
<!--Windows 8 --> | ||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> | ||
<!-- Windows 8.1 --> | ||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> | ||
<!-- Windows 10 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> | ||
</application> | ||
</compatibility> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<security> | ||
<requestedPrivileges> | ||
<!-- | ||
可任选以下配置之一指定一个进程权限: | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | ||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> | ||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> | ||
requireAdministrator 为管理员权限, | ||
highestAvailable 为可以获取到的最高权限, | ||
asInvoker 为默认值,即调用进程当前权限,一般不需要显式指定,指定后会禁用虚拟化。 | ||
虚拟化指Vista以后系统禁止写 Program File目录,启用虚拟化则重定向到%localappdata%\VirtualStore目录, | ||
而注册表 HKEY_LOCAL_MACHINE\Software 则重定向到HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\Software | ||
--> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" > | ||
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> | ||
<dpiAware>True/PM</dpiAware> | ||
</asmv3:windowsSettings> | ||
</asmv3:application> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//发布前触发 | ||
import ide; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//此触发器在生成EXE以后执行 | ||
import ide; | ||
import fsys; | ||
|
||
//获取生成的EXE文件路径 | ||
var publishFile = ide.getPublishPath(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project ver="10" name="Unpacker" libEmbed="true" icon="..." ui="console" output="Unpacker.exe" CompanyName="单位名称" FileDescription="Unpacker" LegalCopyright="Copyright (C) 作者 2022" ProductName="Unpacker" InternalName="Unpacker" FileVersion="0.0.0.1" ProductVersion="0.0.0.1" publishDir="/dist/" dstrip="false"> | ||
<file name="main.aardio" path="main.aardio" comment="启动程序代码"/> | ||
<folder name="资源文件" path="res" embed="true"/> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//config 配置文件 | ||
import fsys.config; | ||
config = fsys.config("/config/"); | ||
//config = fsys.config( io.appData("/软件作者/应用程序名/") ); | ||
|
||
//不需要序列化的配置名字前请添加下划线 | ||
namespace config { | ||
__appName = "应用程序名"; | ||
__appVersion = "1.0.0.01"; | ||
__appDescription = "这是一个测试程序"; | ||
__website = "http://www.aardio.com/"; | ||
} | ||
|
||
/**intellisense(config) | ||
__appName = 应用程序名 | ||
__appVersion = 应用程序内部版本号 | ||
__appDescription = 程序说明 | ||
__website = 官方网站 | ||
? = 配置文件名,\n读写配置并序列化为一个表对象,\n表的成员值可以是支持序列化的普通变量,支持table对象\n配置文件在首次使用时自动加载,退出程序时自动保存\n!fsys_table. | ||
end intellisense**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import console; | ||
import zlib; | ||
import zlib.unzip; | ||
|
||
console.setTitle("Unpacker"); | ||
|
||
console.dump(_ARGV) | ||
zlib.unzip.extract(_ARGV[1],_ARGV[2]) | ||
//console.pause() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nim c -d:ssl -d:zippy -d:release --outdir:dist Main.nim | ||
nim c -d:ssl -d:release --outdir:dist Main.nim | ||
rem nim c -d:ssl -d:release --outdir:dist download.nim | ||
rem nim c -d:release --outdir:dist nvidia.nim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters