mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Refactor/maven (#889)
* mavenize * mavenization * mavenization * mavenization * mavenization * mavenization * mavenization * mavenization * mavenization * fix * app framework update * fix lib * lib * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * building for win and linux * Create run.bat * fixes for netlist * cleanup * unit tests * unit tests * configurable high dpi * performance upgrade * performance upgrade * rotate bug * Omit boards, wires, traces, terminals, etc from Spice netlist output * splash version update * optimize libs * optimize libs * updates * mac build maven * ruler optimization, moved images * cleanup * notarization * test workflow * build * Update pom.xml * Update pom.xml * Create README.md * Create test.yml * maven * build
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ftype diyfile="%CD%\diylc.exe" "%%1"
|
||||
assoc .diy=diyfile
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-Xms512m -Xmx4096m -Dorg.diylc.scriptRun=true -Dfile.encoding=UTF-8
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
@@ -0,0 +1,62 @@
|
||||
[Setup]
|
||||
AppName=DIY Layout Creator
|
||||
AppVersion={#diylcver}
|
||||
DefaultDirName={pf}\DIYLC
|
||||
DefaultGroupName=DIY Layout Creator
|
||||
UninstallDisplayIcon={app}\diylc.exe
|
||||
Compression=zip
|
||||
SolidCompression=yes
|
||||
OutputDir=..\..\target
|
||||
OutputBaseFilename=diylc-{#diylcver}-win64
|
||||
ChangesAssociations=yes
|
||||
AlwaysShowDirOnReadyPage=yes
|
||||
; Only allow the installer to run on x64-compatible systems,
|
||||
; and enable 64-bit install mode.
|
||||
ArchitecturesAllowed={#arch}
|
||||
ArchitecturesInstallIn64BitMode={#arch}
|
||||
|
||||
[Files]
|
||||
Source: "diylc-{#arch}.exe"; DestDir: "{app}"; DestName: "diylc.exe"
|
||||
Source: "..\..\src\main\resources\icons\diylc_file.ico"; DestDir: "{app}"
|
||||
Source: "..\..\target\diylc.jar"; DestDir: "{app}"
|
||||
Source: "..\..\target\jre_win\*"; DestDir: "{app}\jre17"; Flags: ignoreversion recursesubdirs
|
||||
Source: "donate.bmp"; DestDir: "{tmp}"; Flags: dontcopy nocompression
|
||||
|
||||
[Registry]
|
||||
Root: HKCR; Subkey: ".diy"; ValueData: "DIYLC"; Flags: uninsdeletevalue; ValueType: string; ValueName: ""
|
||||
Root: HKCR; Subkey: "DIYLC"; ValueData: "Program DIYLC"; Flags: uninsdeletekey; ValueType: string; ValueName: ""
|
||||
Root: HKCR; Subkey: "DIYLC\DefaultIcon"; ValueData: "{app}\diylc_file.ico"; ValueType: string; ValueName: ""
|
||||
Root: HKCR; Subkey: "DIYLC\shell\open\command"; ValueData: """{app}\diylc.exe"" ""%1"""; ValueType: string; ValueName: ""
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\DIY Layout Creator"; Filename: "{app}/diylc.exe"
|
||||
|
||||
[Run]
|
||||
Filename: "{app}/diylc.exe"; Description: "Launch DIYLC on exit"; Flags: postinstall skipifsilent
|
||||
|
||||
[Code]
|
||||
|
||||
procedure LicenseLinkClick(Sender: TObject);
|
||||
var
|
||||
ErrorCode: Integer;
|
||||
begin
|
||||
ShellExec('', 'http://www.diy-fever.com/donate', '', '', SW_SHOW, ewNoWait,
|
||||
ErrorCode);
|
||||
end;
|
||||
|
||||
procedure InitializeWizard;
|
||||
var donateImage: TBitmapImage;
|
||||
begin
|
||||
ExtractTemporaryFile('donate.bmp');
|
||||
|
||||
donateImage := TBitmapImage.Create(WizardForm);
|
||||
donateImage.Parent:= WizardForm;
|
||||
donateImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\donate.bmp'));
|
||||
donateImage.Stretch := True;
|
||||
donateImage.Width := 142;
|
||||
donateImage.Height := 27;
|
||||
donateImage.Left := 8;
|
||||
donateImage.Top := WizardForm.InnerPage.Height + 10;
|
||||
donateImage.Cursor := crHand;
|
||||
donateImage.OnClick := @LicenseLinkClick;
|
||||
end;
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<launch4jConfig>
|
||||
<dontWrapJar>true</dontWrapJar>
|
||||
<headerType>gui</headerType>
|
||||
<jar>diylc.jar</jar>
|
||||
<outfile>C:\Users\bancika\Documents\GitHub\diy-layout-creator\diylc\diylc-swing\deploy\diylc-x64.exe</outfile>
|
||||
<errTitle></errTitle>
|
||||
<cmdLine></cmdLine>
|
||||
<chdir>.</chdir>
|
||||
<priority>normal</priority>
|
||||
<downloadUrl>http://java.com/download</downloadUrl>
|
||||
<supportUrl></supportUrl>
|
||||
<stayAlive>false</stayAlive>
|
||||
<restartOnCrash>false</restartOnCrash>
|
||||
<manifest></manifest>
|
||||
<icon>C:\Users\bancika\Documents\GitHub\diy-layout-creator\diylc\diylc-swing\icons\diylc.ico</icon>
|
||||
<classPath>
|
||||
<mainClass>org.diylc.DIYLCStarter</mainClass>
|
||||
<cp>lib</cp>
|
||||
</classPath>
|
||||
<jre>
|
||||
<path>jre17</path>
|
||||
<requiresJdk>false</requiresJdk>
|
||||
<requires64Bit>true</requires64Bit>
|
||||
<minVersion>17</minVersion>
|
||||
<maxVersion></maxVersion>
|
||||
<initialHeapSize>512</initialHeapSize>
|
||||
<maxHeapSize>4096</maxHeapSize>
|
||||
<opt>-Dorg.diylc.scriptRun=true</opt>
|
||||
<opt>-Dfile.encoding=UTF-8</opt>
|
||||
<opt>-javaagent:lib/jar-loader.jar</opt>
|
||||
<opt>--add-opens java.base/java.util=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.base/java.lang=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.base/java.text=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.desktop/java.awt=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.desktop/java.awt.font=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.desktop/java.awt.geom=ALL-UNNAMED</opt>
|
||||
</jre>
|
||||
</launch4jConfig>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<launch4jConfig>
|
||||
<dontWrapJar>true</dontWrapJar>
|
||||
<headerType>gui</headerType>
|
||||
<jar>diylc.jar</jar>
|
||||
<outfile>C:\Users\bancika\Documents\GitHub\diy-layout-creator\diylc\diylc-swing\deploy\diylc-x86.exe</outfile>
|
||||
<errTitle></errTitle>
|
||||
<cmdLine></cmdLine>
|
||||
<chdir>.</chdir>
|
||||
<priority>normal</priority>
|
||||
<downloadUrl>http://java.com/download</downloadUrl>
|
||||
<supportUrl></supportUrl>
|
||||
<stayAlive>false</stayAlive>
|
||||
<restartOnCrash>false</restartOnCrash>
|
||||
<manifest></manifest>
|
||||
<icon>C:\Users\bancika\Documents\GitHub\diy-layout-creator\diylc\diylc-swing\icons\diylc.ico</icon>
|
||||
<classPath>
|
||||
<mainClass>org.diylc.DIYLCStarter</mainClass>
|
||||
<cp>lib</cp>
|
||||
</classPath>
|
||||
<jre>
|
||||
<path>jre17</path>
|
||||
<requiresJdk>false</requiresJdk>
|
||||
<requires64Bit>false</requires64Bit>
|
||||
<minVersion>17</minVersion>
|
||||
<maxVersion></maxVersion>
|
||||
<initialHeapSize>512</initialHeapSize>
|
||||
<maxHeapSize>2048</maxHeapSize>
|
||||
<opt>-Dorg.diylc.scriptRun=true</opt>
|
||||
<opt>-Dfile.encoding=UTF-8</opt>
|
||||
<opt>-javaagent:lib/jar-loader.jar</opt>
|
||||
<opt>--add-opens java.base/java.util=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.base/java.lang=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.base/java.text=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.desktop/java.awt=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.desktop/java.awt.font=ALL-UNNAMED</opt>
|
||||
<opt>--add-opens java.desktop/java.awt.geom=ALL-UNNAMED</opt>
|
||||
</jre>
|
||||
</launch4jConfig>
|
||||
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
rem Get the directory where the batch file is located
|
||||
set "DIR=%~dp0"
|
||||
set "CLASS_PATH=%DIR%diylc.jar"
|
||||
|
||||
rem Run DIYLC with appropriate memory and Java module settings
|
||||
java ^
|
||||
-Xms512m ^
|
||||
-Xmx4096m ^
|
||||
-Dorg.diylc.scriptRun=true ^
|
||||
-Dfile.encoding=UTF-8 ^
|
||||
-cp "%CLASS_PATH%" ^
|
||||
--add-exports java.desktop/com.apple.eawt.event=ALL-UNNAMED ^
|
||||
--add-exports java.desktop/com.apple.eio=ALL-UNNAMED ^
|
||||
--add-opens java.base/java.util=ALL-UNNAMED ^
|
||||
--add-opens java.base/java.lang=ALL-UNNAMED ^
|
||||
--add-opens java.base/java.text=ALL-UNNAMED ^
|
||||
--add-opens java.desktop/java.awt=ALL-UNNAMED ^
|
||||
--add-opens java.desktop/java.awt.font=ALL-UNNAMED ^
|
||||
--add-opens java.desktop/java.awt.geom=ALL-UNNAMED ^
|
||||
org.diylc.DIYLCStarter %*
|
||||
Reference in New Issue
Block a user