Browse Source

remove make.files to .github

Artem V. Ageev 8 months ago
parent
commit
9edf65dc37

+ 26 - 26
make.ps1 → .github/workflows/make.ps1

@@ -9,35 +9,10 @@ Options:
 " | Out-Host
 }
 
-Function Request-File {
-    While ($Input.MoveNext()) {
-        New-Variable -Name VAR -Option Constant -Value @{
-            Uri = $Input.Current
-            OutFile = (Split-Path -Path $Input.Current -Leaf).Split('?')[0]
-        }
-        Invoke-WebRequest @VAR
-        Return $VAR.OutFile
-    }
-}
-
-Function Install-Program {
-    While ($Input.MoveNext()) {
-        Switch ((Split-Path -Path $Input.Current -Leaf).Split('.')[-1]) {
-            'msi' {
-                & msiexec /passive /package $Input.Current | Out-Null
-            }
-            Default {
-                & ".\$($Input.Current)" /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART | Out-Null
-            }
-        }
-        Remove-Item $Input.Current
-    }
-}
-
 Function Build-Project {
     New-Variable -Name VAR -Option Constant -Value @{
         Src = 'lazpaint'
-        Use = 'use'
+        Use = '.'
         Pkg = 'use\components.txt'
     }
     If (! (Test-Path -Path $Var.Src)) {
@@ -108,6 +83,31 @@ Function Build-Project {
     ).Sum
 }
 
+Function Request-File {
+    While ($Input.MoveNext()) {
+        New-Variable -Name VAR -Option Constant -Value @{
+            Uri = $Input.Current
+            OutFile = (Split-Path -Path $Input.Current -Leaf).Split('?')[0]
+        }
+        Invoke-WebRequest @VAR
+        Return $VAR.OutFile
+    }
+}
+
+Function Install-Program {
+    While ($Input.MoveNext()) {
+        Switch ((Split-Path -Path $Input.Current -Leaf).Split('.')[-1]) {
+            'msi' {
+                & msiexec /passive /package $Input.Current | Out-Null
+            }
+            Default {
+                & ".\$($Input.Current)" /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART | Out-Null
+            }
+        }
+        Remove-Item $Input.Current
+    }
+}
+
 Function Switch-Action {
     $ErrorActionPreference = 'stop'
     Set-PSDebug -Strict #-Trace 1

+ 1 - 1
make.sh → .github/workflows/make.sh

@@ -13,7 +13,7 @@ function priv_lazbuild
 (
     declare -rA VAR=(
         [src]='lazpaint'
-        [use]='use'
+        [use]='.'
         [pkg]='use/components.txt'
     )
     if ! [[ -d "${VAR[src]}" ]]; then

+ 2 - 2
.github/workflows/make.yml

@@ -34,12 +34,12 @@ jobs:
     - name: Build on Linux
       if: runner.os == 'Linux'
       shell: bash
-      run: bash make.sh build
+      run: bash .github/workflows/make.sh build
 
     - name: Build on Windows
       if: runner.os == 'Windows'
       shell: powershell
-      run: pwsh -File make.ps1 build
+      run: pwsh -File .github/workflows/make.ps1 build
 
     - name: Archive
       if: runner.os == 'Windows'

+ 0 - 0
use/lazpaintcontrols/lazpaintcontrols.lpk → lazpaintcontrols/lazpaintcontrols.lpk


+ 0 - 0
use/lazpaintcontrols/lazpaintcontrols.pas → lazpaintcontrols/lazpaintcontrols.pas


+ 0 - 0
use/lazpaintcontrols/lcresourcestring.pas → lazpaintcontrols/lcresourcestring.pas


+ 0 - 0
use/lazpaintcontrols/lcscaledpi.pas → lazpaintcontrols/lcscaledpi.pas


+ 0 - 0
use/lazpaintcontrols/lctoolbars.pas → lazpaintcontrols/lctoolbars.pas


+ 0 - 0
use/lazpaintcontrols/lcvectorclipboard.pas → lazpaintcontrols/lcvectorclipboard.pas


+ 0 - 0
use/lazpaintcontrols/lcvectorialfill.pas → lazpaintcontrols/lcvectorialfill.pas


+ 0 - 0
use/lazpaintcontrols/lcvectorialfillcontrol.pas → lazpaintcontrols/lcvectorialfillcontrol.pas


+ 1 - 1
use/lazpaintcontrols/lcvectorialfillinterface.pas → lazpaintcontrols/lcvectorialfillinterface.pas

@@ -1407,6 +1407,6 @@ begin
 end;
 
 begin
-  {$i ../../resources/fillimages.lrs}
+  {$i ../resources/fillimages.lrs}
 end.
 

+ 0 - 0
use/lazpaintcontrols/lcvectormultishape.pas → lazpaintcontrols/lcvectormultishape.pas


+ 0 - 0
use/lazpaintcontrols/lcvectororiginal.pas → lazpaintcontrols/lcvectororiginal.pas


+ 0 - 0
use/lazpaintcontrols/lcvectorpolyshapes.pas → lazpaintcontrols/lcvectorpolyshapes.pas


+ 0 - 0
use/lazpaintcontrols/lcvectorrectshapes.pas → lazpaintcontrols/lcvectorrectshapes.pas


+ 0 - 0
use/lazpaintcontrols/lcvectorshapes.pas → lazpaintcontrols/lcvectorshapes.pas


+ 0 - 0
use/lazpaintcontrols/lcvectortextshapes.pas → lazpaintcontrols/lcvectortextshapes.pas