Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
5749e48c
Commit
5749e48c
authored
4 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
packaging: only run deployment script when the client hash changes
Change-Id: I24a54bd832b910a524fb7be1e91c8d6387d6bcb9
parent
76b94aac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
copy-runtime-files.ps1
+14
-6
14 additions, 6 deletions
copy-runtime-files.ps1
with
16 additions
and
6 deletions
.gitignore
+
2
−
0
View file @
5749e48c
...
...
@@ -22,3 +22,5 @@ build-local/
*.vcxproj
*.vcxproj.filters
*qmlcache.qrc
.deploy.stamp
This diff is collapsed.
Click to expand it.
copy-runtime-files.ps1
+
14
−
6
View file @
5749e48c
...
...
@@ -7,7 +7,18 @@ param (
[
string
]
$outDir
);
write-host
"Copying deployment files..."
-ForegroundColor
Green
$clientDir
=
split-path
-parent
$MyInvocation
.
MyCommand
.
Definition
$stamp
=
(
git
rev-parse
HEAD
)
.
Substring
(
0
,
8
)
$stampFile
=
$clientDir
+
"\.deploy.stamp"
If
(
test-path
$stampFile
)
{
if
(
$stamp
=
(
Get-Content
-Path
$stampFile
))
{
write-host
"deployment stamp up-to-date"
$outDir
-ForegroundColor
Cyan
exit
0
}
}
if
(
!
$outDir
)
{
$outDir
=
$clientDir
+
"\x64\"
+
$mode
}
If
(
!
(
test-path
$outDir
))
{
New-Item
-ItemType
directory
-Path
$outDir
-Force
}
# default values
$qtver
=
If
(
$qtver
)
{
$qtver
}
Else
{
"5.15.0"
}
...
...
@@ -18,15 +29,11 @@ $qtMsvcDir = "msvc2019_64"
$QtDir
=
"C:\Qt\
$qtver
\
$qtMsvcDir
"
$clientDir
=
split-path
-parent
$MyInvocation
.
MyCommand
.
Definition
if
(
!
$outDir
)
{
$outDir
=
$clientDir
+
"\x64\"
+
$mode
}
If
(
!
(
test-path
$outDir
))
{
New-Item
-ItemType
directory
-Path
$outDir
-Force
}
if
(
!
$daemonDir
)
{
$daemonDir
=
$clientDir
+
'\..\daemon'
}
if
(
!
$lrcDir
)
{
$lrcDir
=
$clientDir
+
'\..\lrc'
}
write-host
"********************************************************************************"
-ForegroundColor
Magenta
write-host
"copying deployment files..."
-ForegroundColor
Green
write-host
"using daemonDir: "
$daemonDir
-ForegroundColor
Magenta
write-host
"using lrcDir: "
$lrcDir
-ForegroundColor
Magenta
write-host
"using QtDir: "
$QtDir
-ForegroundColor
Magenta
...
...
@@ -99,4 +106,5 @@ Get-ChildItem -Path $clientTSPath -Include *.qm -Recurse | ForEach-Object {
Copy-Item
-Path
$_
.
FullName
-Destination
$CopyDir
-Force
–
Recurse
}
New-Item
-Path
$stampFile
-ItemType
"file"
-Value
$stamp
-Force
write-host
"copy completed"
-NoNewline
-ForegroundColor
Green
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment