Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Main
Synchronet
Commits
f8a3dcfb
Commit
f8a3dcfb
authored
17 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Create Win32 snapshot archive (sbbs_dev.zip) if the Win32 build was successful.
parent
7ed646d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/testbuild.js
+53
-0
53 additions, 0 deletions
exec/testbuild.js
with
53 additions
and
0 deletions
exec/testbuild.js
+
53
−
0
View file @
f8a3dcfb
...
...
@@ -71,6 +71,17 @@ if(platform=="win32") {
builds
.
push
([
"
src/sbbs3/uedit
"
,
"
gmake
"
,
"
2>
"
+
build_output
]);
}
var
win32_dist
=
[
"
README.TXT
"
,
"
FILE_ID.DIZ
"
,
"
src/sbbs3/msvc.win32.exe.release/*.exe
"
,
"
src/sbbs3/msvc.win32.dll.release/*.dll
"
,
"
src/sbbs3/scfg/msvc.win32.exe.release/*.exe
"
,
"
src/sbbs3/scfg/msvc.win32.exe.release/scfghelp.*
"
,
"
src/sbbs3/chat/chat.exe
"
,
"
src/sbbs3/ctrl/sbbsctrl.exe
"
];
chdir
(
temp_dir
);
var
system_description
=
system
.
local_host_name
+
"
-
"
+
system
.
os_version
;
...
...
@@ -161,6 +172,48 @@ log(LOG_INFO,format("Copying %s to %s",archive,dest));
if
(
!
file_copy
(
archive
,
dest
))
log
(
LOG_ERR
,
format
(
"
!ERROR copying %s to %s
"
,
archive
,
dest
));
if
(
platform
==
"
win32
"
)
{
var
file
=
new
File
(
"
README.TXT
"
);
if
(
file
.
open
(
"
wt
"
))
{
file
.
writeln
(
format
(
"
Synchronet-Win32 Version 3 Development Executable Archive (%s)
\n
"
,
system
.
datestr
()));
file
.
writeln
(
"
This archive contains a snap-shot of Synchronet-Win32 executable files
"
);
file
.
writeln
(
"
created on
"
+
system
.
timestr
());
file
.
writeln
();
file
.
writeln
(
"
The files in this archive are not necessarily well-tested, DO NOT
"
);
file
.
writeln
(
"
constitute an official Synchronet release, and are NOT SUPPORTED!
"
);
file
.
writeln
();
file
.
writeln
(
"
USE THESE FILES AT YOUR OWN RISK
"
);
file
.
writeln
();
file
.
writeln
(
"
BACKUP YOUR WORKING EXECUTABLE FILES (i.e. *.exe and *.dll)
"
);
file
.
writeln
(
"
BEFORE over-writing them with the files in this archive!
"
);
file
.
close
();
}
var
file
=
new
File
(
"
FILE_ID.DIZ
"
);
if
(
file
.
open
(
"
wt
"
))
{
file
.
writeln
(
format
(
"
Synchronet-%s BBS Software
"
,
system
.
platform
));
file
.
writeln
(
format
(
"
Development Executable Archive (%s)
"
,
system
.
datestr
()));
file
.
writeln
(
"
Snapshot for experimental purposes only!
"
);
file
.
writeln
(
"
http://www.synchro.net
"
);
file
.
close
();
}
archive
=
"
sbbs_dev.zip
"
;
var
cmd_line
=
"
pkzip25 -add
"
+
archive
+
"
-exclude=makehelp.exe -exclude=v4upgrade.exe
"
+
win32_dist
.
join
(
"
"
);
log
(
LOG_INFO
,
"
Executing:
"
+
cmd_line
);
system
.
exec
(
cmd_line
);
dest
=
file_area
.
dir
[
"
sbbs
"
].
path
+
archive
;
log
(
LOG_INFO
,
format
(
"
Copying %s to %s
"
,
archive
,
dest
));
if
(
!
file_copy
(
archive
,
dest
))
log
(
LOG_ERR
,
format
(
"
!ERROR copying %s to %s
"
,
archive
,
dest
));
}
bail
(
0
);
/* end */
...
...
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