1.2.0 增加bugly

This commit is contained in:
2026-03-30 10:32:54 +08:00
parent 73892596b1
commit b53e07195f
24 changed files with 493 additions and 257 deletions

View File

@@ -1,2 +1,3 @@
SET class_path=target/video-encryptor-1.0-SNAPSHOT.jar;
native-image --no-fallback -H:ConfigurationFileDirectories=META-INF/native-image --allow-incomplete-classpath -classpath %class_path% com.penngo.gralvm.MainSwing
SET class_path=target\video-encryptor-1.0.1.jar;
native-image --no-fallback -H:ConfigurationFileDirectories=src\main\resources\META-INF\native-image --allow-incomplete-classpath -classpath %class_path% com.hnos.video.VideoEncryptorGUI

View File

@@ -1,7 +1,9 @@
@REM 使用idea 的mvn clean package
java -agentlib:native-image-agent=config-output-dir=./META-INF/native-image -jar video-encryptor-1.0.jar
cd target
native-image -jar target\video-encryptor-1.0.jar --no-fallback -H:ConfigurationFileDirectories=.\src\main\resources\META-INF\native-image
java -agentlib:native-image-agent=config-output-dir=src\main\resources\META-INF\native-image -jar video-encryptor-1.0.1.jar
native-image -jar target\video-encryptor-1.0.1.jar --no-fallback -H:ConfigurationFileDirectories=src\main\resources\META-INF\native-image
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\editbin.exe" /SUBSYSTEM:WINDOWS video-encryptor-1.0.exe

View File

@@ -6,7 +6,7 @@
<groupId>com.hainaos</groupId>
<artifactId>video-encryptor</artifactId>
<version>1.0</version>
<version>1.0.1</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>

View File

@@ -21,8 +21,7 @@ public class VideoEncryptorGUI extends JFrame {
// 加密算法常量保持和VideoEncryptor一致
private static final String ALGORITHM = "AES/CTR/NoPadding";
// 视频文件扩展名列表(可根据需要扩展)
private static final List<String> VIDEO_EXTENSIONS = Arrays.asList("mp4", "avi", "mov", "mkv", "flv", "wmv",
"rmvb");
private static final List<String> VIDEO_EXTENSIONS = List.of("mp4");
// 测试用AES密钥16字节AES-128实际使用请替换为安全生成的密钥
private static final byte[] TEST_KEY = "1234567890123456".getBytes();
// 测试用IV向量16字节CTR模式要求IV长度等于块大小实际使用请随机生成

Binary file not shown.