Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
d804ba36
Commit
d804ba36
authored
10 years ago
by
Simon Lejeune
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] packaging: windows: bundle wkhtmltopdf and lessc
parent
299e3955
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
setup/win32/setup.nsi
+5
-1
5 additions, 1 deletion
setup/win32/setup.nsi
setup/win32/static/getfiles.sh
+28
-0
28 additions, 0 deletions
setup/win32/static/getfiles.sh
with
33 additions
and
1 deletion
setup/win32/setup.nsi
+
5
−
1
View file @
d804ba36
...
...
@@ -238,6 +238,10 @@ Section $(TITLE_OpenERP_Server) SectionOpenERP_Server
File "start.bat"
File "stop.bat"
SetOutPath "$INSTDIR\thirdparty"
File /r "${STATIC_PATH}\wkhtmltopdf\*"
File /r "${STATIC_PATH}\less\*"
# If there is a previous install of the OpenERP Server, keep the login/password from the config file
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_host" $TextPostgreSQLHostname
WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_user" $TextPostgreSQLUsername
...
...
@@ -324,7 +328,7 @@ Section "Uninstall"
Rmdir /r "$INSTDIR\server"
Rmdir /r "$INSTDIR\service"
Rmdir /r "$INSTDIR\thirdparty"
DeleteRegKey HKLM "${UNINSTALL_REGISTRY_KEY}"
SectionEnd
...
...
This diff is collapsed.
Click to expand it.
setup/win32/static/getfiles.sh
0 → 100755
+
28
−
0
View file @
d804ba36
#!/usr/bin/env bash
# apt-get install p7zip-full
set
-e
mkdir
-p
wkhtmltopdf less/node_modules
TEMPDIR
=
`
mktemp
-d
-t
odoo_windows_build_XXXX
`
function
cleanup
{
rm
-rf
$TEMPDIR
}
trap
cleanup EXIT
# postgresql
wget
-q
http://get.enterprisedb.com/postgresql/postgresql-9.3.5-1-windows.exe
# wkhtmltopdf
wget
-q
-P
$TEMPDIR
http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1.2_msvc2013-win32.exe
7z x
-o
$TEMPDIR
$TEMPDIR
/wkhtmltox-0.12.1.2_msvc2013-win32.exe
cp
$TEMPDIR
/bin/wkhtmltopdf.exe ./wkhtmltopdf
# less
wget
-q
-P
./less http://nodejs.org/dist/latest/node.exe
echo
'"%~dp0\node.exe" "%~dp0\.\node_modules\less.js\bin\lessc" %*'
>
./less/lessc.cmd
pushd
./less/node_modules
wget
-q
https://github.com/less/less.js/archive/v2.0.0.tar.gz
-O
- |
tar
xz
&&
mv
less.js-2.0.0 less.js
wget
-q
https://github.com/then/promise/archive/6.0.1.tar.gz
-O
- |
tar
xz
&&
mv
promise-6.0.1 promise
wget
-q
https://github.com/kriskowal/asap/archive/v2.0.0.tar.gz
-O
- |
tar
xz
&&
mv
asap-2.0.0 asap
wget
-q
-P
$TEMPDIR
https://github.com/less/less-plugin-clean-css/archive/clean-css-3.zip
unzip
$TEMPDIR
/clean-css-3.zip
&&
mv
less-plugin-clean-css-clean-css-3 less-plugin-clean-css-clean-css
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