{"id":157197,"date":"2012-11-03T14:36:04","date_gmt":"2012-11-03T10:36:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=157197"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=157197","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u0431\u043e\u0440\u043a\u0438 C\/C++ \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 Ruby<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e, \u043a\u0430\u043a \u0438 \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e <br \/>  \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0443\u0442\u0438 \u043e\u0442 SVN \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u043a NSIS \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440\u0443 \u0441 \u043f\u043e\u043f\u0443\u0442\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412 \u0440\u0443\u0447\u043d\u043e\u043c \u0436\u0435 \u0440\u0435\u0436\u0438\u043c\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<ul>\n<li>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041d\u0443\u0436\u043d\u043e \u043b\u0438 \u044d\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u043b\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u2013 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/li>\n<li>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f setup.<\/li>\n<li>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u0438 nsi-\u0444\u0430\u0439\u043b\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0435 \u0432 \u043e\u043a\u043d\u0430\u0445 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0432 \u0438\u043c\u0435\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e setup-\u0444\u0430\u0439\u043b\u0430.<\/li>\n<\/ul>\n<p>  \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0430\u0432\u0440\u0430\u043b\u0430\u0445, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0440\u0443\u043a\u0430\u0445 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. <\/p>\n<p>  \u041d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044f \u043d\u0430 \u043d\u043e\u0432\u0438\u0437\u043d\u0443, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0435 \u043d\u0438\u0436\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442 \u0441\u0431\u043e\u0440\u043a\u0443 C\/C++ Visual Studio \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435.<\/p>\n<p>  <a name=\"habracut\"><\/a>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 A.B.C.D, \u0433\u0434\u0435 A \u0438 B \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0434\u043a\u043e \u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 release-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438:  <\/p>\n<ul>\n<li>\u0421 \u2013 \u043d\u043e\u043c\u0435\u0440 SVN \u0440\u0435\u0432\u0438\u0437\u0438\u0438;<\/li>\n<li>D \u2013 \u043d\u043e\u043c\u0435\u0440 \u0441\u0431\u043e\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/li>\n<\/ul>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u044e \u0444\u0430\u0439\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0445\u0435\u0434\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044f\u0441\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 .rc, \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u0445 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 NSIS \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440\u0430, \u0432 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u0430 \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, MyApp-1.0.837.1.exe. \u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u044d\u0442\u0430\u043f\u043e\u0432 \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u0432\u0442\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/h4>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u043e\u043c\u0435\u0440\u0430 SVN \u0440\u0435\u0432\u0438\u0437\u0438\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 SubWCRev.exe, \u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 Pre-Build Event, \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"http:\/\/www.xakep.ru\/post\/23780\/\">\u0437\u0434\u0435\u0441\u044c<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/support.microsoft.com\/kb\/237870\">\u0442\u0443\u0442<\/a>. <\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b VersionInfo.h:  <\/p>\n<pre><code class=\"cpp\">#ifndef __VERSION_INFO_H #define __VERSION_INFO_H  #define APP_NAME          &quot;MyApp&quot; #define APP_VERSION       1,0,,0 #define APP_VERSION_S     &quot;&quot; #define APP_DATE          &quot;&quot;  #endif <\/code><\/pre>\n<p>  \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e \u0432 .rc \u0444\u0430\u0439\u043b (\u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043f\u0443\u0442\u0438 \u043a\u0443\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438):  <\/p>\n<pre><code class=\"cpp\">#include &quot;..\/src\/VersionInfo.h&quot; <\/code><\/pre>\n<p>  \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u0437\u0436\u0435 \u0434\u043b\u044f .nsi:  <\/p>\n<pre><code class=\"bash\"> FILEVERSION APP_VERSION  PRODUCTVERSION APP_VERSION <\/code><\/pre>\n<p>  \u0412 \u0437\u0430\u0434\u0430\u0447\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 VersionBuild.rb \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f  <\/p>\n<pre><code class=\"bash\">C:\\Ruby193\\bin\\ruby VersionBuild.rb VersionInfo.h <\/code><\/pre>\n<p>  \u0432\u0445\u043e\u0434\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 VersionInfo.h \u043f\u0443\u0442\u0435\u043c \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432 $WCREV$ \u0438 $WCNOW=$ \u0438\u0437 SubWCRev.exe:  <\/p>\n<pre><code class=\"cpp\">#define APP_VERSION       1,0,$WCREV$,1 #define APP_VERSION_S     &quot;1.0.$WCREV$.1&quot; #define APP_DATE          &quot;$WCNOW=%d.%m.%Y %H:%M$&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"cpp\">#define APP_VERSION       1,0,$WCREV$,2 #define APP_VERSION_S     &quot;1.0.$WCREV$.2&quot; #define APP_DATE          &quot;$WCNOW=%d.%m.%Y %H:%M$&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"cpp\">... <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u044b\u0437\u043e\u0432  <\/p>\n<pre><code class=\"bash\">SubWCRev.exe .. VersionInfo.h VersionInfo.h <\/code><\/pre>\n<p>  \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u043e\u043c\u0435\u0440\u0430 SVN \u0440\u0435\u0432\u0438\u0437\u0438\u0438 \u0438 \u0434\u0430\u0442\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440  <\/p>\n<pre><code class=\"cpp\">#define APP_VERSION       1,0,29,2 #define APP_VERSION_S     &quot;1.0.29.2&quot; #define APP_DATE          &quot;01.11.2012 20:09&quot; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 VersionBuild.rb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u043e\u0441\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u0440\u043e\u0431\u0435\u043b\u044b\/\u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0438):  <\/p>\n<pre><code class=\"ruby\">FNAME = ARGV[0]  file = File::read(FNAME)  ANY_IN_QUOTES = Regexp.new('&quot;[^&quot;]*&quot;')  def replaceVersion(file) \t#\u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c APP_VERSION \tmatcher = Regexp.new('APP_VERSION\\s*[^\\r\\n]*')  \tline = file.match(matcher)[0]  \told_ver = \/(\\d+),(\\d+),(.*),(\\d+)\/ \tline.match(old_ver) \t \tnew_ver = [$1, $2, &quot;$WCREV$&quot;, $4.to_i + 1]  \tline.sub!(old_ver, new_ver.join(&quot;,&quot;)) \tfile.sub!(matcher, line) \t \t#\u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c APP_VERSION_S \tmatcher = Regexp.new('APP_VERSION_S\\s*' + ANY_IN_QUOTES.source) \tline = file.match(matcher)[0] \t \tline.sub!(ANY_IN_QUOTES, '&quot;' + new_ver.join(&quot;.&quot;) + '&quot;')\t \tfile.sub!(matcher, line) end  def replaceDate(file)\t \t#\u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u043c APP_DATE \tmatcher = Regexp.new('APP_DATE\\s*' + ANY_IN_QUOTES.source)  \tdate = file.match(matcher)[0]  \tdate.sub!(ANY_IN_QUOTES, '&quot;$WCNOW=%d.%m.%Y %H:%M$&quot;')\t \tfile.sub!(matcher, date) end  replaceVersion(file) replaceDate(file)  File::write(FNAME, file) <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c VersionInfo.h \u0432 \u0445\u0435\u0434\u0435\u0440\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u043a\u0441\u0438-\u0444\u0430\u0439\u043b\u044b:  <\/p>\n<pre><code class=\"cpp\">#include &quot;Version.h&quot; #include &quot;VersionInfo.h&quot;  const char *Version() { \treturn APP_VERSION_S; }  const char *BuildDate() { \treturn APP_DATE; } <\/code><\/pre>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0431\u043e\u0440\u043a\u0438 setup<\/h4>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 NSIS \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e exe (\u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0430\u043f\u043a\u0435) \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u044f\u0440\u043b\u044b\u043a\u043e\u0432 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u0438 \u0432 \u041f\u0443\u0441\u043a\u0435.   <\/p>\n<pre><code class=\"bash\">!include &quot;MUI.nsh&quot;  ;\u0420\u0430\u0441\u043a\u043e\u043c\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 ;!define APP_NAME \t&quot;MyApp&quot; ;!define MAJOR_VERSION \t&quot;1&quot; ;!define MINOR_VERSION \t&quot;0&quot; ;!define SVN_REVISION  \t&quot;29&quot; ;!define BUILD_NUMBER\t&quot;2&quot; ;!define APP_VERSION\t&quot;${MAJOR_VERSION}.${MINOR_VERSION}.${SVN_REVISION}.${BUILD_NUMBER}&quot; ;!define SETUP_NAME\t&quot;${APP_NAME}-${APP_VERSION}.exe&quot;  Name ${SETUP_NAME} OutFile ${SETUP_NAME}  InstallDir $PROGRAMFILES\\${APP_NAME}  \tVIProductVersion ${APP_VERSION} \tVIAddVersionKey &quot;ProductName&quot; ${APP_NAME} \tVIAddVersionKey &quot;Comments&quot; &quot;&quot; \tVIAddVersionKey &quot;CompanyName&quot; &quot;&quot; \tVIAddVersionKey &quot;LegalTrademarks&quot; &quot;&quot; \tVIAddVersionKey &quot;LegalCopyright&quot; &quot;\u00a9 &quot; \tVIAddVersionKey &quot;FileDescription&quot; ${APP_NAME} \tVIAddVersionKey &quot;FileVersion&quot; ${APP_VERSION} \t \t!define MUI_ABORTWARNING \t \t!insertmacro MUI_PAGE_WELCOME \t!insertmacro MUI_PAGE_COMPONENTS \t!insertmacro MUI_PAGE_DIRECTORY \t!insertmacro MUI_PAGE_INSTFILES \t!insertmacro MUI_PAGE_FINISH \t \t!insertmacro MUI_UNPAGE_WELCOME \t!insertmacro MUI_UNPAGE_CONFIRM \t!insertmacro MUI_UNPAGE_INSTFILES \t!insertmacro MUI_UNPAGE_FINISH \t \t!insertmacro MUI_LANGUAGE &quot;Russian&quot;  Section &quot;${APP_NAME} (required)&quot;   \tSetOutPath $INSTDIR \tFile &quot;${APP_NAME}.exe&quot; \tWriteUninstaller &quot;uninstall.exe&quot;  SectionEnd  Section &quot;Uninstall&quot;    \tDelete &quot;$INSTDIR\\*.*&quot; \tDelete &quot;$SMPROGRAMS\\${APP_NAME}\\*.*&quot; \tDelete &quot;$DESKTOP\\${APP_NAME}.lnk&quot;  \tRMDir &quot;$SMPROGRAMS\\${APP_NAME}&quot; \tRMDir &quot;$INSTDIR&quot;  SectionEnd  Section &quot;Start Menu and Desktop Shortcuts&quot;  \tCreateDirectory &quot;$SMPROGRAMS\\${APP_NAME}&quot; \tCreateShortCut &quot;$SMPROGRAMS\\${APP_NAME}\\Uninstall.lnk&quot; &quot;$INSTDIR\\uninstall.exe&quot; &quot;&quot; &quot;$INSTDIR\\uninstall.exe&quot; 0 \tCreateShortCut &quot;$DESKTOP\\${APP_NAME}.lnk&quot; &quot;$INSTDIR\\${APP_NAME}.exe&quot;    SectionEnd <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0447\u0435\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 !define \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 APP_NAME \u0438 APP_VERSION \u0443\u0442\u0438\u043b\u0438\u0442\u0435 makensis.exe. \u042d\u0442\u0438\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442 SetupBuild.rb, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0438\u043c\u044f \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:  <\/p>\n<pre><code class=\"bash\">C:\\Ruby193\\bin\\ruby SetupBuild.rb MyApp.exe <\/code><\/pre>\n<p>  \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 MyApp.exe \u0438\u043c\u0435\u043b APP_VERSION_S = \u00ab1.0.29.2\u00bb, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0437 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0444\u0430\u0439\u043b\u0430 \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 MyApp-1.0.29.2.exe, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b \u043e\u0442 NSIS \u0432 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435.<\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 SetupBuild.rb:  <\/p>\n<pre><code class=\"ruby\">NSIS_MAKE = '&quot;C:\\Program Files (x86)\\NSIS\\makensis.exe&quot;'  require 'win32ole'  def versionOf(fname) \tfso = WIN32OLE.new(&quot;Scripting.FileSystemObject&quot;) \treturn fso.GetFileVersion(fname) end  def alert(msg) \tfso = WIN32OLE.new(&quot;WScript.Shell&quot;) \tfso.Popup msg end  SRC_FNAME = File::expand_path(ARGV[0]) APP_NAME = File::basename(SRC_FNAME, '.*')  params = Hash.new params['APP_NAME'] = APP_NAME params['APP_VERSION'] = versionOf(SRC_FNAME) params['SETUP_NAME'] = &quot;#{APP_NAME}-#{params['APP_VERSION']}.exe&quot;  #\u043f\u0440\u0435\u0444\u0438\u043a\u0441 \/D \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0434 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0437\u0430\u0434\u0430\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 \u0432 NSIS (\u0430\u043d\u0430\u043b\u043e\u0433 !define) cmd = params.map{|key, val| &quot;\/D#{key}=#{val}&quot;}.join(&quot; &quot;)  LOG_FNAME = &quot;#{APP_NAME}_#{$0}.log&quot;  r = system(&quot;#{NSIS_MAKE} #{cmd} #{APP_NAME}.nsi &gt; #{LOG_FNAME}&quot;) if r \tFile::delete(LOG_FNAME)  else \tsystem('notepad', LOG_FNAME) end <\/code><\/pre>\n<h4>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<p>  \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 SVN-\u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 Visual Studio 2008 \u043b\u0435\u0436\u0438\u0442 \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/ruby-nsis.googlecode.com\/svn\/trunk\">https:\/\/ruby-nsis.googlecode.com\/svn\/trunk<\/a>.<\/p>\n<p>  \u041a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f:  <\/p>\n<ul>\n<li><a href=\"http:\/\/nsis.sourceforge.net\/Download\">NSIS<\/a><\/li>\n<li><a href=\"http:\/\/rubyinstaller.org\/downloads\/\">Ruby<\/a> (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u0443\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e)<\/li>\n<\/ul>\n<p>  \u0414\u043b\u044f release \u0432 Project-&gt;Properties-&gt;Build Events-&gt;Pre-Build Event-&gt;Command Line \u0437\u0430\u0434\u0430\u043d\u043e  <\/p>\n<pre><code class=\"bash\">C:\\Ruby193\\bin\\ruby &quot;..\\src\\VersionBuild.rb&quot; &quot;..\\src\\VersionInfo.h&quot; SubWCRev.exe  .. &quot;..\\src\\VersionInfo.h&quot; &quot;..\\src\\VersionInfo.h&quot; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 setup\\SetupBuild.bat c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c  <\/p>\n<pre><code class=\"bash\">C:\\Ruby193\\bin\\ruby SetupBuild.rb MyApp.exe <\/code><\/pre>\n<p>  \u0431\u0443\u0434\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d setup-\u0444\u0430\u0439\u043b MyApp-1.0.x.y.exe, \u0433\u0434\u0435 x \u2014 \u043d\u043e\u043c\u0435\u0440 SVN \u0432\u0435\u0440\u0441\u0438\u0438, y \u2014 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c SetupBuild.bat \u0432 Post-Build Event, \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/157197\/\"> http:\/\/habrahabr.ru\/post\/157197\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e, \u043a\u0430\u043a \u0438 \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e <br \/>  \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0443\u0442\u0438 \u043e\u0442 SVN \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u043a NSIS \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440\u0443 \u0441 \u043f\u043e\u043f\u0443\u0442\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412 \u0440\u0443\u0447\u043d\u043e\u043c \u0436\u0435 \u0440\u0435\u0436\u0438\u043c\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<ul>\n<li>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041d\u0443\u0436\u043d\u043e \u043b\u0438 \u044d\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u043b\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u2013 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/li>\n<li>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f setup.<\/li>\n<li>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u0438 nsi-\u0444\u0430\u0439\u043b\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0435 \u0432 \u043e\u043a\u043d\u0430\u0445 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0432 \u0438\u043c\u0435\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e setup-\u0444\u0430\u0439\u043b\u0430.<\/li>\n<\/ul>\n<p>  \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0430\u0432\u0440\u0430\u043b\u0430\u0445, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0440\u0443\u043a\u0430\u0445 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. <\/p>\n<p>  \u041d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044f \u043d\u0430 \u043d\u043e\u0432\u0438\u0437\u043d\u0443, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0435 \u043d\u0438\u0436\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442 \u0441\u0431\u043e\u0440\u043a\u0443 C\/C++ Visual Studio \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-157197","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157197"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157197\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}