Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos.package
Commits
4e6434c6
Commit
4e6434c6
authored
Jul 29, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-build-installer:
missing ipwin.exe fix slash problem when patch iss script file
parent
9a6bdfa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
windows/scripts/slapos-build-installer
windows/scripts/slapos-build-installer
+19
-9
No files found.
windows/scripts/slapos-build-installer
View file @
4e6434c6
...
...
@@ -284,37 +284,47 @@ csih_inform "extracting ${_filename} ..."
(
cd
/opt
;
tar
xzf
${
_filename
}
--no-same-owner
)
||
csih_error
"extract
${
_filename
}
failed"
_filename
=
/opt/git/slapos.package/windows/ipwin/ipwin/ipwin.exe
[[
!
-f
${
_filename
}
]]
&&
cp
/usr/bin/ipwin.exe
${
_filename
}
&&
csih_inform
"copy ipwin.exe"
csih_inform
"Prepare the sources OK"
echo
""
# -----------------------------------------------------------
# Generate installer
# -----------------------------------------------------------
_issfile
=
~/slapos.iss
_installer_name
=
slapos-windows-all-in-one
_output_dir
=
$(
cygpath
-
w
~/
)
_source_dir
=
$(
cygpath
-a
-w
$(
cygpath
-w
/
)
\\
..
)
_output_dir
=
$(
cygpath
-
a
-w
~ |
sed
-e
's%\\%\\\\%g'
)
_source_dir
=
$(
cygpath
-a
-w
$(
cygpath
-w
/
)
\\
..
|
sed
-e
's%\\%\\\\%g'
)
_srcfile
=
/opt/git/slapos.package/windows/scripts/slapos-all-in-one.iss
_install_path
=
$(
cygpath
-w
/opt/slapos-node
)
_install_path
=
$(
cygpath
-w
/opt/slapos-node |
sed
-e
's%\\%\\\\%g'
)
csih_inform
"Starting generate Windows installer ..."
[[
-x
"
$ISCC
"
]]
||
csih_error
"missing
$ISCC
"
csih_inform
"copy
${
_srcfile
}
to
${
_issfile
}
"
cp
${
_srcfile
}
${
_issfile
}
||
csih_error
"copy failed"
csih_inform
"patch
${
_issfile
}
...
}
"
sed
-i
-e
"s
/^DefaultDirName=.*/DefaultDirName=
${
_install_path
}
/
"
\
-e
"s
/^OutputBaseFilename=.*/OutputBaseFilename=
${
_installer_name
}
/
"
\
-e
"s
/^OutputDir=.*/OutputDir=
${
_output_dir
}
/
"
\
-e
"s
/^SourceDir=.*/SourceDir=
${
_source_dir
}
/
"
\
csih_inform
"patch
${
_issfile
}
..."
sed
-i
-e
"s
%^DefaultDirName=.*%DefaultDirName=
${
_install_path
}
%
"
\
-e
"s
%^OutputBaseFilename=.*%OutputBaseFilename=
${
_installer_name
}
%
"
\
-e
"s
%^OutputDir=.*%OutputDir=
${
_output_dir
}
%
"
\
-e
"s
%^SourceDir=.*%SourceDir=
${
_source_dir
}
%
"
\
${
_issfile
}
||
csih_error
"patch failed"
csih_inform
"run issc to build
${
_issfile
}
..."
$ISCC
/Q
$(
cygpath
-w
${
_issfile
}
)
||
$ISCC
$(
cygpath
-w
${
_issfile
}
)
||
csih_error
"issc failed"
csih_inform
"Generate Windows installer OK"
echo
""
# -----------------------------------------------------------
# Finish
# -----------------------------------------------------------
echo
""
csih_inform
"Build Slapos Windows installer successfully."
echo
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment